Skip to content

Commit 82d96ea

Browse files
committed
feat(runner): use node20 by default
1 parent 6f00a0b commit 82d96ea

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/check-dist.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v3
2222

23-
- name: Set Node.js 16.x
23+
- name: Set Node.js 20.x
2424
uses: actions/setup-node@v3
2525
with:
26-
node-version: 16.x
26+
node-version: 20.x
2727
cache: npm
2828

2929
- name: Install dependencies

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: 16
16+
node-version: 20
1717
cache: npm
1818
- run: npm ci
1919
- run: npm run style:check

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ documentation.
3434

3535
## Breaking Changes
3636

37+
### Breaking changes in V7
38+
39+
Version 7 of this action updated the runtime to Node 20 - https://github.com/github/docs/issues/28156
40+
41+
All scripts are now run with Node 20 instead of Node 16 and are affected by any breaking changes between Node 16 and 20.
42+
43+
3744
### Breaking changes in V6
3845

3946
Version 6 of this action updated the runtime to Node 16 - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-using-nodejs-v16
@@ -377,7 +384,7 @@ jobs:
377384
- uses: actions/checkout@v3
378385
- uses: actions/setup-node@v3
379386
with:
380-
node-version: 16
387+
node-version: 20
381388
- run: npm ci
382389
# or one-off:
383390
- run: npm install execa

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ outputs:
3333
result:
3434
description: The return value of the script, stringified with `JSON.stringify`
3535
runs:
36-
using: node16
36+
using: node20
3737
main: dist/index.js

0 commit comments

Comments
 (0)