ci: Align workflows with Node 24
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '24'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install server dependencies
|
- name: Install server dependencies
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '24'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install client dependencies
|
- name: Install client dependencies
|
||||||
@@ -30,10 +30,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Update Dockerfile to use prebuilt client
|
- name: Update Dockerfile to use prebuilt client
|
||||||
run: |
|
run: |
|
||||||
sed -i '/^FROM node:22 AS client/,/^ && INDEX_FORMAT=ejs DISABLE_ESLINT_PLUGIN=true npm run build$/c\
|
sed -i '/^FROM node:24 AS client/,/^ && INDEX_FORMAT=ejs DISABLE_ESLINT_PLUGIN=true npm run build$/c\
|
||||||
FROM node:22 AS client\n\
|
FROM node:24 AS client\n\
|
||||||
WORKDIR /app\n\
|
WORKDIR /app\n\
|
||||||
COPY client/build /app/dist' Dockerfile
|
COPY client/build /app/dist' Dockerfile
|
||||||
|
grep -q '^COPY client/build /app/dist$' Dockerfile \
|
||||||
|
|| { echo "::error::Failed to patch Dockerfile for the prebuilt client"; exit 1; }
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '24'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Update version with build number
|
- name: Update version with build number
|
||||||
@@ -44,10 +44,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Update Dockerfile to use prebuilt client
|
- name: Update Dockerfile to use prebuilt client
|
||||||
run: |
|
run: |
|
||||||
sed -i '/^FROM node:22 AS client/,/^ && INDEX_FORMAT=ejs DISABLE_ESLINT_PLUGIN=true npm run build$/c\
|
sed -i '/^FROM node:24 AS client/,/^ && INDEX_FORMAT=ejs DISABLE_ESLINT_PLUGIN=true npm run build$/c\
|
||||||
FROM node:22 AS client\n\
|
FROM node:24 AS client\n\
|
||||||
WORKDIR /app\n\
|
WORKDIR /app\n\
|
||||||
COPY client/build /app/dist' Dockerfile
|
COPY client/build /app/dist' Dockerfile
|
||||||
|
grep -q '^COPY client/build /app/dist$' Dockerfile \
|
||||||
|
|| { echo "::error::Failed to patch Dockerfile for the prebuilt client"; exit 1; }
|
||||||
cat Dockerfile
|
cat Dockerfile
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '24'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Set up PostgreSQL
|
- name: Set up PostgreSQL
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '24'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Cache Node.js modules
|
- name: Cache Node.js modules
|
||||||
|
|||||||
Reference in New Issue
Block a user