From 700c1426ec34f7de62e951b110fae601572e4187 Mon Sep 17 00:00:00 2001 From: Max <53796487+dyedwiper@users.noreply.github.com> Date: Tue, 19 Nov 2024 09:54:31 +0100 Subject: [PATCH] BC-7995 Raise node version to 22 (#3539) --- .github/workflows/test.yml | 2 +- .nvmrc | 2 +- Dockerfile | 4 ++-- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5d1129a570..109d8a3a72 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' - name: setup environment and execute mocha tests run: npm ci && npm run build && npm run mocha diff --git a/.nvmrc b/.nvmrc index 209e3ef4b6..2bd5a0a98a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +22 diff --git a/Dockerfile b/Dockerfile index cf5ea5a71f..b9fe6972a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM docker.io/node:20 as git +FROM docker.io/node:22 as git RUN mkdir /app && chown -R node:node /app WORKDIR /app COPY .git . RUN git config --global --add safe.directory /app && echo "{\"sha\": \"$(git rev-parse HEAD)\", \"version\": \"$(git describe --tags --abbrev=0)\", \"commitDate\": \"$(git log -1 --format=%cd --date=format:'%Y-%m-%dT%H:%M:%SZ')\", \"birthdate\": \"$(date +%Y-%m-%dT%H:%M:%SZ)\"}" > /app/version -FROM docker.io/node:20-alpine +FROM docker.io/node:22-alpine ENV TZ=Europe/Berlin diff --git a/package-lock.json b/package-lock.json index a2fde0d42f..ef78373992 100644 --- a/package-lock.json +++ b/package-lock.json @@ -164,7 +164,7 @@ "webpack-stream": "^5.2.1" }, "engines": { - "node": "20", + "node": "22", "npm": ">=9" } }, diff --git a/package.json b/package.json index 37eb33dbc7..e486d325b5 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "coverage": "nyc npm run mocha" }, "engines": { - "node": "20", + "node": "22", "npm": ">=9" }, "lint-staged": {