Skip to content

Commit 0b36106

Browse files
authored
feat!: update action runtime to Node 24 (#231)
1 parent 62716ea commit 0b36106

File tree

8 files changed

+43
-62
lines changed

8 files changed

+43
-62
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
- macos-latest
2626
- windows-latest
2727
node-version:
28-
- "16"
29-
- "18"
3028
- "20"
3129
- "22"
3230
- "24"
@@ -76,7 +74,7 @@ jobs:
7674
- name: Install Node.js
7775
uses: actions/setup-node@v5
7876
with:
79-
node-version: "20"
77+
node-version: "24"
8078
cache: npm
8179

8280
- name: Install development dependencies
@@ -109,8 +107,6 @@ jobs:
109107
fail-fast: false
110108
matrix:
111109
node-version:
112-
- "16"
113-
- "18"
114110
- "20"
115111
- "22"
116112
- "24"
@@ -243,7 +239,7 @@ jobs:
243239
- name: Install Node.js
244240
uses: actions/setup-node@v5
245241
with:
246-
node-version: "20"
242+
node-version: "24"
247243

248244
- name: Download publish artifact
249245
uses: actions/download-artifact@v5

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Contributions, enhancements, and bug-fixes are welcome! [Open an issue](https://
44

55
## Building Locally
66

7-
You should be using Node.js v16 or later to build this project locally
7+
You should be using Node.js v24 or later to build this project locally
88

99
```shell
1010
# Clone this repository

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ outputs:
9292
If not configured for a scoped package, will be "default".
9393
9494
runs:
95-
using: node20
95+
using: node24
9696
main: action.js

dist/main.js

Lines changed: 32 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
"lint": "npm run _eslint && npm run _prettier -- --check",
3838
"format": "npm run _eslint -- --fix && npm run _prettier -- --write",
3939
"build": "concurrently -g npm:build:*",
40-
"build:dist": "esbuild src/action/main.ts --bundle --sourcemap --outdir=dist --platform=node --target=node16",
40+
"build:dist": "esbuild src/action/main.ts --bundle --sourcemap --outdir=dist --platform=node --target=node20",
4141
"build:lib": "tsc",
4242
"test": "vitest",
4343
"coverage": "vitest run --coverage",
4444
"_eslint": "eslint \"**/*.@(js|ts)\"",
4545
"_prettier": "prettier \"**/*.@(js|ts|json|md|yaml)\""
4646
},
4747
"engines": {
48-
"node": ">=16"
48+
"node": ">=20"
4949
},
5050
"publishConfig": {
5151
"access": "public",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
// target Node v16 / ES2021
4-
"target": "es2021",
3+
// target Node v20 / ES2023
4+
"target": "es2023",
55
"module": "commonjs",
66
"moduleResolution": "node",
77
"resolveJsonModule": true,

0 commit comments

Comments
 (0)