From e477e003612d5c82787765af787d6bc12e354dc2 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Mon, 5 May 2025 12:35:25 +0000 Subject: [PATCH 1/2] build: update development Node.js version to 22.15.0 and auto-update The version of Node.js used for development and CI jobs is now set to the active LTS version's latest minor and patch. Renovate is also now configured to update the minor and patch versions. --- .nvmrc | 2 +- renovate.json | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.nvmrc b/.nvmrc index 726a201e6..b8ffd7075 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.11.1 \ No newline at end of file +22.15.0 diff --git a/renovate.json b/renovate.json index b76239be8..bc6acb897 100644 --- a/renovate.json +++ b/renovate.json @@ -15,7 +15,6 @@ }, "ignorePaths": ["bazel/integration/tests/**"], "ignoreDeps": ["rules_pkg", "@angular-devkit/build-angular"], - "enabledManagers": ["npm", "bazel", "github-actions"], "baseBranches": ["main"], "postUpgradeTasks": { "commands": [ @@ -27,6 +26,15 @@ "executionMode": "update" }, "packageRules": [ + { + "matchDepNames": ["node"], + "matchUpdateTypes": ["minor", "patch"] + }, + { + "enabled": false, + "matchDepNames": ["node"], + "matchUpdateTypes": ["major"] + }, { "matchUpdateTypes": ["minor", "patch"], "groupName": "all non-major dependencies", From 8032a1b13c7233f31da4dad1fbe903aac440ac11 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Mon, 5 May 2025 12:37:13 +0000 Subject: [PATCH 2/2] build: update ng-renovate to use `checkout-and-setup-node` This is needed to that the Node.js version in nvmrc is used. --- .github/workflows/ng-renovate.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ng-renovate.yml b/.github/workflows/ng-renovate.yml index 5980009c9..54ccc3552 100644 --- a/.github/workflows/ng-renovate.yml +++ b/.github/workflows/ng-renovate.yml @@ -24,7 +24,11 @@ jobs: - angular/.github runs-on: ubuntu-latest steps: + # Because the checkout and setup node action is contained in the dev-infra repo, we must + # checkout the repo to be able to run the action we have created. Other repos will skip + # this step. - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: ./github-actions/npm/checkout-and-setup-node - run: npm install --global pnpm@9.15.6 shell: bash