Skip to content

Commit 1ff8ef9

Browse files
authored
Merge pull request #39 from KyoriPowered/feat/node20
feat!: Require Node 20
2 parents 5fbfeab + 97ac9ee commit 1ff8ef9

File tree

8 files changed

+413
-396
lines changed

8 files changed

+413
-396
lines changed

.github/workflows/check-dist.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
workflow_dispatch:
1919

2020
env:
21-
NODE_VERSION: "16.x"
21+
NODE_VERSION: "20.x"
2222

2323
jobs:
2424
check-dist:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test
33
on: push
44

55
env:
6-
NODE_VERSION: "16.x"
6+
NODE_VERSION: "20.x"
77

88
jobs:
99
test:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
9797
## Contributing
9898
99-
As this is a Javascript action, it is subject to the quirks enforced on GitHub. Development should be done on Node 16 or later. Any text editor works, but we tend to use VS Code.
99+
As this is a Javascript action, it is subject to the quirks enforced on GitHub. Development should be done on Node 20 or later. Any text editor works, but we tend to use VS Code.
100100
101101
To set up a development environment:
102102

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ outputs:
3333
group9:
3434
description: The 9th captured group.
3535
runs:
36-
using: node16
36+
using: node20
3737
main: dist/index.js
3838
branding:
3939
icon: search

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ class OidcClient {
558558
.catch(error => {
559559
throw new Error(`Failed to get ID Token. \n
560560
Error Code : ${error.statusCode}\n
561-
Error Message: ${error.result.message}`);
561+
Error Message: ${error.message}`);
562562
});
563563
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
564564
if (!id_token) {

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Do regex matching",
55
"main": "dist/index.js",
66
"scripts": {
7-
"build": "ncc build src/main.ts --target es2021",
7+
"build": "ncc build src/main.ts --target es2022",
88
"format": "prettier --write **/*.ts",
99
"format-check": "prettier --check **/*.ts",
1010
"lint": "eslint src/**/*.ts",
@@ -22,21 +22,21 @@
2222
"author": "The Actions Ecosystem Authors, KyoriPowered",
2323
"license": "Apache 2.0",
2424
"dependencies": {
25-
"@actions/core": "^1.10.0"
25+
"@actions/core": "^1.10.1"
2626
},
2727
"devDependencies": {
28-
"@types/jest": "^29.2.3",
29-
"@types/node": "^18.11.9",
30-
"@typescript-eslint/eslint-plugin": "^6.0.0",
31-
"@typescript-eslint/parser": "^6.0.0",
32-
"@vercel/ncc": "^0.36.0",
33-
"eslint": "^8.28.0",
34-
"eslint-plugin-jest": "^27.1.6",
28+
"@types/jest": "^29.5.5",
29+
"@types/node": "^20.6.4",
30+
"@typescript-eslint/eslint-plugin": "^6.7.2",
31+
"@typescript-eslint/parser": "^6.7.2",
32+
"@vercel/ncc": "^0.38.0",
33+
"eslint": "^8.50.0",
34+
"eslint-plugin-jest": "^27.4.0",
3535
"eslint-plugin-prettier": "^5.0.0",
36-
"jest": "^29.3.1",
37-
"prettier": "^3.0.0",
38-
"ts-jest": "^29.0.3",
39-
"typescript": "^5.0.0"
36+
"jest": "^29.7.0",
37+
"prettier": "^3.0.3",
38+
"ts-jest": "^29.1.1",
39+
"typescript": "^5.2.2"
4040
},
4141
"packageManager": "[email protected]"
4242
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2021",
3+
"lib": ["es2023"],
4+
"target": "ES2022",
45
"module": "commonjs",
56
"rootDir": "./src",
67
"strict": true,

0 commit comments

Comments
 (0)