Skip to content

Commit 07801e8

Browse files
committed
ci: migrate runners to Node.js 24 and bump nrwl/nx-set-shas to v5.0.1
- Bump actions/setup-node node-version from 22 → 24 across all GitHub Actions workflows and the run-publish-vr-screenshot composite action. - Pin nrwl/nx-set-shas to v5.0.1 (afb73a62…); v5 ships a Node 24 runtime and resolves the GitHub deprecation warning for Node 20 JS actions. - Bump UseNode@1 in .devops/templates/tools.yml from 22.x → 24.x, which propagates to every azure-pipelines.*.yml that consumes the template. - Align legacy actions/setup-node@v4 → @v6 in the composite action. - Update copilot.instructions.md to note CI runs on the current Active LTS (Node.js 24) while engines still allow 22 || 24.
1 parent 9317e51 commit 07801e8

13 files changed

Lines changed: 27 additions & 28 deletions

File tree

.devops/templates/tools.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ steps:
1717
# 👉 NOTE:
1818
# - we can use only versions that ship with container, otherwise we will run into nodejs installation issues.
1919
# - as 1es bumps those versions within container automatically we need to use `<major>.x` to not run into issues once they bump the versions.
20-
# - `checkLatest: true` is required because some dependencies (e.g. @microsoft/fast-build) require node >=22.18.0,
21-
# while the 1ES container may still ship an older 22.x (e.g. 22.14.0). This forces the task to install the latest 22.x.
20+
# - `checkLatest: true` forces the task to install the latest 24.x in case the 1ES container ships an older 24.x patch release.
2221
# https://github.com/actions/runner-images/blob/ubuntu20/20230924.1/images/linux/Ubuntu2004-Readme.md#nodejs
23-
version: '22.x'
22+
version: '24.x'
2423
checkLatest: true
2524
displayName: 'Install Node.js'
2625
retryCountOnTaskFailure: 1

.github/actions/run-publish-vr-screenshot/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ inputs:
2929
runs:
3030
using: 'composite'
3131
steps:
32-
- uses: nrwl/nx-set-shas@v4
32+
- uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1
3333
with:
3434
main-branch-name: 'master'
3535

36-
- uses: actions/setup-node@v4
36+
- uses: actions/setup-node@v6
3737
with:
3838
cache: 'yarn'
39-
node-version: '20'
39+
node-version: '24'
4040

4141
- run: yarn install --frozen-lockfile
4242
shell: bash

.github/instructions/copilot.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This is a large Nx monorepo with the following key characteristics:
1212

1313
- **Package Manager**: Yarn v1 with strict dependency management
1414
- **Build System**: Nx workspace with custom plugins (`tools/workspace-plugin/`)
15-
- **Node.js Versions**: ^22.0.0
15+
- **Node.js Versions**: ^22.0.0 || ^24.0.0 (CI runs on Node.js 24 — the current Active LTS)
1616
- **Languages**: TypeScript (strict mode), React, Web Components
1717
- **Testing**: Jest, Cypress (E2E), Storybook + StoryWright (Visual Regression), SSR testing (test-ssr)
1818
- **Documentation**: Storybook sites, api.md files via API Extractor

.github/workflows/bundle-size-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/setup-node@v6
3030
with:
3131
cache: 'yarn'
32-
node-version: '22'
32+
node-version: '24'
3333

3434
- run: yarn install --frozen-lockfile
3535

.github/workflows/bundle-size.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
fetch-depth: 0
2929

3030
- name: Derive appropriate SHAs for base and head for `nx affected` commands
31-
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v4.3.3
31+
uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1
3232
with:
3333
main-branch-name: 'master'
3434

3535
- uses: actions/setup-node@v6
3636
with:
3737
cache: 'yarn'
38-
node-version: '22'
38+
node-version: '24'
3939

4040
- run: echo number of CPUs "$(getconf _NPROCESSORS_ONLN)"
4141

.github/workflows/check-packages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- uses: actions/setup-node@v6
1515
with:
16-
node-version: '22'
16+
node-version: '24'
1717
cache: 'yarn'
1818

1919
- uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
@@ -46,7 +46,7 @@ jobs:
4646

4747
- uses: actions/setup-node@v6
4848
with:
49-
node-version: 22.x
49+
node-version: 24.x
5050

5151
- uses: actions/github-script@v8
5252
with:
@@ -73,7 +73,7 @@ jobs:
7373

7474
- uses: actions/setup-node@v6
7575
with:
76-
node-version: 22.x
76+
node-version: 24.x
7777

7878
- uses: actions/github-script@v8
7979
with:

.github/workflows/check-tooling.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- uses: actions/setup-node@v6
2828
with:
29-
node-version: '22'
29+
node-version: '24'
3030

3131
- run: yarn install --frozen-lockfile
3232

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
uses: actions/setup-node@v6
2828
with:
2929
cache: 'yarn'
30-
node-version: '22'
30+
node-version: '24'
3131

3232
- run: yarn install --frozen-lockfile

.github/workflows/docsite-publish-ghpages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: Derive appropriate SHAs for base and head for `nx affected` commands
22-
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v4.3.3
22+
uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1
2323
with:
2424
main-branch-name: 'master'
2525

2626
- uses: actions/setup-node@v6
2727
with:
28-
node-version: '22'
28+
node-version: '24'
2929
cache: 'yarn'
3030

3131
- name: Install packages

.github/workflows/pr-vrt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
fetch-depth: 0
3232

3333
- name: Derive appropriate SHAs for base and head for `nx affected` commands
34-
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v4.3.3
34+
uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1
3535
with:
3636
main-branch-name: 'master'
3737

3838
- uses: actions/setup-node@v6
3939
with:
4040
cache: 'yarn'
41-
node-version: '22'
41+
node-version: '24'
4242

4343
- run: yarn install --frozen-lockfile
4444
- run: yarn playwright install --with-deps

0 commit comments

Comments
 (0)