From 729b121428ac6c841803765345ae7beb60f88c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6sing?= <2189546+boesing@users.noreply.github.com> Date: Wed, 24 Apr 2024 02:06:18 +0200 Subject: [PATCH] qa: synchronize `package.json` and `package-lock.json` with `Dockerfile` version of `node` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com> --- .github/workflows/continuous-integration.yml | 4 ++-- Dockerfile | 1 + package-lock.json | 2 +- package.json | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) 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",