diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index a0d70785..2763fdd4 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -136,7 +136,7 @@ jobs: - uses: "actions/setup-node@v4" with: check-latest: true - node-version: 20 + node-version: 21 - name: "Install node modules" run: "npm ci" - name: Run ESLint @@ -149,7 +149,7 @@ jobs: - uses: "actions/setup-node@v4" with: check-latest: true - node-version: 20 + node-version: 21 - name: "Install node modules" run: "npm ci" - name: Run Jest diff --git a/Dockerfile b/Dockerfile index 7e4b0dfb..4a6f4001 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ COPY package*.json ./ COPY tsconfig.json ./ COPY webpack.config.ts ./ RUN npm ci +RUN apk add --no-cache jq && npx semver -r $(jq -r '.packages."".engines.node' package-lock.json) $(node -v) || >&2 echo "ERROR: package-lock.json is not synchronized with Dockerfile node version." && exit 1 COPY ./src ./src RUN npm run build diff --git a/package-lock.json b/package-lock.json index 1d608698..0d91247c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "webpack-cli": "^5.0.0" }, "engines": { - "node": "^20.2.0", + "node": "^21.7.0", "npm": "^10.0.0" } }, diff --git a/package.json b/package.json index 70a15cd1..8a855b01 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "engines": { "npm": "^10.0.0", - "node": "^20.2.0" + "node": "^21.7.0" }, "dependencies": { "@actions/core": "^1.10.0",