From 93013476e570814158a06a567e2ab118c7146acb Mon Sep 17 00:00:00 2001 From: Felix Althaus Date: Wed, 31 Jul 2024 19:25:03 +0200 Subject: [PATCH] [FEATURE] Update node to version 22 Fixes: #1403 --- .github/workflows/ci.yml | 2 +- .gitlab/pipeline/jobs/.default-frontend.yml | 2 +- Build/Scripts/runTests.sh | 2 +- package.json | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41007fb..4234a93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,7 +105,7 @@ jobs: - name: "Set up Node.js" uses: actions/setup-node@v4 with: - node-version: "18.20.2" + node-version: "22.5.1" - name: "Install modules" run: | npm ci diff --git a/.gitlab/pipeline/jobs/.default-frontend.yml b/.gitlab/pipeline/jobs/.default-frontend.yml index 3852291..4d37c12 100644 --- a/.gitlab/pipeline/jobs/.default-frontend.yml +++ b/.gitlab/pipeline/jobs/.default-frontend.yml @@ -1,5 +1,5 @@ .default-frontend: - image: node:18 + image: node:22 needs: [ ] cache: key: "$CI_PROJECT_ID" diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh index 9d1d9d1..610ba87 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -318,7 +318,7 @@ CGLCHECK_DRY_RUN=0 DATABASE_DRIVER="" CONTAINER_BIN="" COMPOSER_ROOT_VERSION="3.0.x-dev" -NODE_VERSION=18 +NODE_VERSION=22 HELP_TEXT_NPM_CI="Now running \'npm ci --silent\'." HELP_TEXT_NPM_FAILURE="npm clean-install has failed. Please run \'${0} -s npm ci\' to explore." CONTAINER_INTERACTIVE="-it --init" diff --git a/package.json b/package.json index 499ee75..09cf74a 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "version": "1.0.0", "license": "GPL-2.0-or-later", "engines": { - "node": "^18.20.0", - "npm": "^10.5.0" + "node": "^22.5.0", + "npm": "^10.8.0" }, "scripts": { "ci:lint:js": "eslint 'Resources/Public/**/*.js'",