Skip to content

Commit efa64f8

Browse files
committed
feat!: update action runtime to Node v24
BREAKING CHANGE: Support for Node v16 and v18 has been dropped.
1 parent d76128b commit efa64f8

File tree

16 files changed

+22094
-7911
lines changed

16 files changed

+22094
-7911
lines changed

.eslintrc.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ settings:
2121
import/resolver:
2222
typescript: true
2323
node: true
24-
24+
tsconfigPath: "tsconfig.eslint.json"
25+
typescriptExtensionMap:
26+
[
27+
["", ".js"],
28+
[".ts", ".js"],
29+
[".cts", ".cjs"],
30+
[".mts", ".mjs"],
31+
[".tsx", ".js"],
32+
]
2533
env:
2634
es2021: true
2735
node: true
@@ -38,6 +46,7 @@ rules:
3846
allowRegExp: false
3947
allowNever: false
4048
"@typescript-eslint/no-unnecessary-type-parameters": "off"
49+
n/no-missing-import: "off"
4150

4251
overrides:
4352
- files: ["**/*.js"]

.github/workflows/ci-cd.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
- macos-latest
2626
- windows-latest
2727
node-version:
28-
- 16
29-
- 18
30-
- 20
28+
- "20"
29+
- "22"
30+
- "24"
3131

3232
steps:
3333
- name: Checkout source
@@ -74,7 +74,7 @@ jobs:
7474
- name: Install Node.js
7575
uses: actions/setup-node@v5
7676
with:
77-
node-version: "20"
77+
node-version: "24"
7878
cache: npm
7979

8080
- name: Install development dependencies
@@ -107,13 +107,13 @@ jobs:
107107
fail-fast: false
108108
matrix:
109109
node-version:
110-
- 16
111-
- 18
112-
- 20
110+
- "20"
111+
- "22"
112+
- "24"
113113

114114
services:
115115
verdaccio:
116-
image: verdaccio/verdaccio:5
116+
image: verdaccio/verdaccio:6
117117
ports:
118118
- 4873:4873
119119

@@ -224,7 +224,7 @@ jobs:
224224
- name: Install Node.js
225225
uses: actions/setup-node@v5
226226
with:
227-
node-version: "20"
227+
node-version: "24"
228228

229229
- name: Download publish artifact
230230
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.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-floating-promises, @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call */
2-
"use strict";
1+
import { main } from "./dist/main.js";
32

4-
const { main } = require("./dist/main.js");
5-
6-
main();
3+
await main();

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

bin/npm-publish.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env node
2-
/* eslint-disable @typescript-eslint/no-require-imports, @typescript-eslint/use-unknown-in-catch-callback-variable, unicorn/prefer-module, unicorn/prefer-top-level-await */
3-
"use strict";
2+
import process from "node:process";
43

5-
const process = require("node:process");
6-
const { version } = require("../package.json");
7-
const { main } = require("../lib/cli/index.js");
4+
import { main } from "../lib/cli/index.js";
5+
import manifest from "../package.json" with { type: "json" };
86

9-
main(process.argv.slice(2), version).catch((error) => {
7+
try {
8+
await main(process.argv.slice(2), manifest.version);
9+
} catch (error) {
1010
console.error(error);
1111
process.exitCode = 1;
12-
});
12+
}

0 commit comments

Comments
 (0)