Skip to content

Commit

Permalink
Merge pull request #39 from KyoriPowered/feat/node20
Browse files Browse the repository at this point in the history
feat!: Require Node 20
  • Loading branch information
zml2008 authored Sep 24, 2023
2 parents 5fbfeab + 97ac9ee commit 1ff8ef9
Show file tree
Hide file tree
Showing 8 changed files with 413 additions and 396 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
workflow_dispatch:

env:
NODE_VERSION: "16.x"
NODE_VERSION: "20.x"

jobs:
check-dist:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on: push

env:
NODE_VERSION: "16.x"
NODE_VERSION: "20.x"

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
## Contributing
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.
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.
To set up a development environment:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ outputs:
group9:
description: The 9th captured group.
runs:
using: node16
using: node20
main: dist/index.js
branding:
icon: search
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ class OidcClient {
.catch(error => {
throw new Error(`Failed to get ID Token. \n
Error Code : ${error.statusCode}\n
Error Message: ${error.result.message}`);
Error Message: ${error.message}`);
});
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
if (!id_token) {
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Do regex matching",
"main": "dist/index.js",
"scripts": {
"build": "ncc build src/main.ts --target es2021",
"build": "ncc build src/main.ts --target es2022",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts",
Expand All @@ -22,21 +22,21 @@
"author": "The Actions Ecosystem Authors, KyoriPowered",
"license": "Apache 2.0",
"dependencies": {
"@actions/core": "^1.10.0"
"@actions/core": "^1.10.1"
},
"devDependencies": {
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vercel/ncc": "^0.36.0",
"eslint": "^8.28.0",
"eslint-plugin-jest": "^27.1.6",
"@types/jest": "^29.5.5",
"@types/node": "^20.6.4",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@vercel/ncc": "^0.38.0",
"eslint": "^8.50.0",
"eslint-plugin-jest": "^27.4.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.3.1",
"prettier": "^3.0.0",
"ts-jest": "^29.0.3",
"typescript": "^5.0.0"
"jest": "^29.7.0",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"packageManager": "yarn@3.6.3"
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ES2021",
"lib": ["es2023"],
"target": "ES2022",
"module": "commonjs",
"rootDir": "./src",
"strict": true,
Expand Down
Loading

0 comments on commit 1ff8ef9

Please sign in to comment.