Skip to content

Commit

Permalink
Update to Node.js 20.x
Browse files Browse the repository at this point in the history
Node.js 16.x reaches its EOL next month. GitHub is migrating everything
to Node.js 20.x, so do we.

From now on, publish this action as v0.3.
  • Loading branch information
twz123 committed Sep 8, 2023
1 parent 515fdba commit 128ee15
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"extends": ["plugin:github/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"ecmaVersion": 2023,
"sourceType": "module",
"project": ["./src/tsconfig.json", "./tsconfig.test.json"]
},
Expand Down Expand Up @@ -65,7 +65,7 @@
},
"env": {
"node": true,
"es6": true
"es2022": true
},

"overrides": [
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- name: Checkout
uses: actions/[email protected]

- name: Set up Node.js 16.x
- name: Set up Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x

- name: Install dependencies
run: npm ci
Expand All @@ -39,4 +39,4 @@ jobs:
- name: Update rolling release tag
if: ${{ github.ref == 'refs/heads/main' }}
run: |
git push origin HEAD:refs/tags/v0.2 --force
git push origin HEAD:refs/tags/v0.3 --force
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
## Code in Main

First, you'll need to have a reasonably modern version of `node` handy. The CI
builds use Node 16, currently.
builds use Node 20, currently.

Install the dependencies

Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ inputs:
required: true
description: The name of the workflow that should be re-run
runs:
using: node16
using: node20
main: dist/index.js
8 changes: 5 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"@octokit/webhooks-types": "^7"
},
"devDependencies": {
"@types/node": "^16",
"@tsconfig/node20": "^20",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"@vercel/ncc": "~0.38",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.common.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"composite": true
}
Expand Down

0 comments on commit 128ee15

Please sign in to comment.