Skip to content

Commit 7ecbabc

Browse files
Shadowghostdscho
authored andcommitted
Bump GitHub Actions runtime to Node 24
GitHub will stop supporting the Node 20 runtime for GitHub Actions on June 2nd, 2026 (see https://github.blog/changelog/2025-12-05-github-actions-update-on-node20-deprecation/), so the `runs.using` field in action.yml is switched from `node20` to `node24`. Both CI workflows gain an explicit `actions/setup-node@v6` step pinned to `node-version: 24` so that `npm ci`, the build, and the test suite all run under the same Node version that the action will use at runtime. Without this step, CI would use whatever Node version the runner image happens to ship, which may not yet be v24. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 171fe93 commit 7ecbabc

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/npm-run-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
repository: ${{ github.event.repository.full_name }}
2323
ref: ${{ inputs.branch }}${{ github.event.ref }}
2424
token: ${{ secrets.GIT_FOR_WINDOWS_CI_PUSH }}
25+
- uses: actions/setup-node@v6
26+
with:
27+
node-version: 24
2528
- run: npm ci
2629
- run: npm run build
2730
- run: npm run lint

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
runs-on: windows-latest
1414
steps:
1515
- uses: actions/checkout@v6
16+
- uses: actions/setup-node@v6
17+
with:
18+
node-version: 24
1619
- run: npm ci
1720
- run: npm run build
1821
- run: npm run lint

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ inputs:
4747
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
4848
default: ${{ github.token }}
4949
runs:
50-
using: 'node20'
50+
using: 'node24'
5151
main: 'dist/index.js'
5252
post: 'dist/index.js'

0 commit comments

Comments
 (0)