From c8cb839e605a807e8d6af39fb7a2eb826fc7ead8 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Fri, 1 Nov 2024 12:10:23 +0100 Subject: [PATCH] build!: Update to Node v22 (#32182) Updates Renovate's package.json>engines to add support for Node v22 LTS, and updates Renovate official Docker images to run on Node v22 instead of Node v20. Closes #32068 BREAKING CHANGE: Renovate Docker images will now be based on Node.js v22 instead of v20 --- .github/workflows/build.yml | 2 +- .github/workflows/update-data.yml | 2 +- .nvmrc | 2 +- package.json | 4 ++-- tools/docker/Dockerfile | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 57f2de4f596902..3c43b76838a55d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ concurrency: env: DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} - NODE_VERSION: 20 + NODE_VERSION: 22 PDM_VERSION: 2.20.0.post1 # renovate: datasource=pypi depName=pdm DRY_RUN: true TEST_LEGACY_DECRYPTION: true diff --git a/.github/workflows/update-data.yml b/.github/workflows/update-data.yml index d4de7915483334..93b68aafd8baaf 100644 --- a/.github/workflows/update-data.yml +++ b/.github/workflows/update-data.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: env: - NODE_VERSION: 20 + NODE_VERSION: 22 permissions: contents: read diff --git a/.nvmrc b/.nvmrc index 2a393af592b8cd..7af24b7ddbde0c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.18.0 +22.11.0 diff --git a/package.json b/package.json index 7dfcd6da83e255..c2ba4869a45cc5 100644 --- a/package.json +++ b/package.json @@ -135,11 +135,11 @@ }, "homepage": "https://renovatebot.com", "engines": { - "node": "^20.15.1", + "node": "^20.15.1 || ^22.11.0", "pnpm": "^9.0.0" }, "volta": { - "node": "20.18.0", + "node": "22.11.0", "pnpm": "9.12.3" }, "dependencies": { diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 87d980acba86e1..920a7569cec206 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -19,7 +19,7 @@ FROM --platform=$BUILDPLATFORM ghcr.io/renovatebot/base-image:7.41.2@sha256:b104 # We want a specific node version here # renovate: datasource=node-version -RUN install-tool node 20.18.0 +RUN install-tool node 22.11.0 WORKDIR /usr/local/renovate