Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to node 20 #693

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- run: |
Expand All @@ -25,18 +25,18 @@ jobs:
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./

pr-build-test:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
- uses: pnpm/action-setup@v2
node-version: '20'
- uses: pnpm/action-setup@v4
with:
version: 8
- run: |
Expand Down
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"standard.enable": false
{
"standard.enable": false,
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ inputs:
Fetching dependencies can be quite slow on larger changesets
default: 'true'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
3,902 changes: 1,877 additions & 2,025 deletions dist/index.js

Large diffs are not rendered by default.

131 changes: 64 additions & 67 deletions dist/index.js.LEGAL.txt

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

Binary file modified dist/main.wasm.gz
Binary file not shown.
4 changes: 3 additions & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ await build({
entryPoints: ['src/index.ts'],
bundle: true,
platform: 'node',
target: 'node16',
target: 'node20',
external: ['re2', 'dtrace-provider', 'performance'],
outdir: 'dist',
minify: true,
// fix for https://github.com/microsoft/node-jsonc-parser/issues/57
mainFields: ['module', 'main'],

plugins: [
copy({
Expand Down
39 changes: 15 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,25 @@
"author": "AurorNZ",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@ungap/structured-clone": "^1.2.0",
"bunyan": "1.8.15",
"renovate": "36.6.0",
"simple-git": "3.19.1"
"renovate": "37.423.0",
"simple-git": "3.25.0"
},
"devDependencies": {
"@tsconfig/node16": "16.1.0",
"@types/bunyan": "^1.8.8",
"@types/node": "~16.18.38",
"@types/ungap__structured-clone": "0.3.0",
"dotenv": "^16.3.1",
"esbuild": "0.18.11",
"@tsconfig/node20": "20.1.4",
"@types/bunyan": "^1.8.11",
"@types/node": "~20.14.9",
"@types/ungap__structured-clone": "1.2.0",
"dotenv": "^16.4.5",
"esbuild": "0.23.0",
"esbuild-plugin-copy": "2.1.1",
"esbuild-register": "3.4.2",
"eslint": "^8.44.0",
"eslint-plugin-github": "^4.8.0",
"prettier": "2.8.8",
"typescript": "^5.1.6"
},
"pnpm": {
"overrides": {
"fast-xml-parser@<4.2.4": ">=4.2.4",
"semver@<7.5.2": ">=7.5.2"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
"esbuild-register": "3.5.0",
"eslint": "^8.57.0",
"eslint-plugin-github": "^5.0.1",
"prettier": "3.3.2",
"typescript": "^5.5.3"
}
}
30 changes: 0 additions & 30 deletions patches/[email protected]

This file was deleted.

Loading