Skip to content

Commit 99e9929

Browse files
authored
feat: upgrade node to v20 (#95)
The node18 runner is not going to be supported by Github, and the current Node LTS version is 18. So let's jump directly from v16 to v20, to keep up with Node LTS. BREAKING CHANGE: The action now runs on node20 runner. If you use self-hosted runners, make sure you are able to run actions with node v20.
1 parent c8d69a3 commit 99e9929

8 files changed

Lines changed: 68 additions & 68 deletions

File tree

.github/workflows/check-dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Set Node.js 18.x
19+
- name: Set Node.js 20.x
2020
uses: actions/[email protected]
2121
with:
22-
node-version: 18.x
22+
node-version: 20.x
2323

2424
- uses: pnpm/action-setup@v2
2525

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24-
- name: Set Node.js 18.x
24+
- name: Set Node.js 20.x
2525
uses: actions/[email protected]
2626
with:
27-
node-version: 18.x
27+
node-version: 20.x
2828

2929
- uses: pnpm/action-setup@v2
3030

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010

11-
- name: Set Node.js 18.x
11+
- name: Set Node.js 20.x
1212
uses: actions/[email protected]
1313
with:
14-
node-version: 18.x
14+
node-version: 20.x
1515

1616
- uses: pnpm/action-setup@v2
1717

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ inputs:
2727
default: ${{ github.token }}
2828

2929
runs:
30-
using: 'node16'
30+
using: 'node20'
3131
main: 'dist/main.cjs'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"actions"
2525
],
2626
"engines": {
27-
"node": "=18"
27+
"node": "=20"
2828
},
2929
"packageManager": "[email protected]",
3030
"type": "module",
@@ -50,7 +50,7 @@
5050
"@swc/core": "1.3.89",
5151
"@swc/jest": "0.2.29",
5252
"@types/jest": "29.5.5",
53-
"@types/node": "18.18.0",
53+
"@types/node": "20.6.2",
5454
"@typescript-eslint/eslint-plugin": "6.7.3",
5555
"@typescript-eslint/parser": "6.7.3",
5656
"chalk": "5.3.0",

0 commit comments

Comments
 (0)