feat: update to use node20 (#61)

* feat: update to use node20

Signed-off-by: Rui Chen <rui@chenrui.dev>

* chore: bump to use `actions/checkout` v4 (node20 runtime)

Signed-off-by: Rui Chen <rui@chenrui.dev>

* exclude node_modules

* Rebuild

---------

Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: Renée Kooi <renee@kooi.me>
pull/66/head
Rui Chen 2023-12-30 06:31:55 -05:00 committed by GitHub
parent b4d8c3ab02
commit 426edce485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1529 additions and 1135 deletions

View File

@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm install
- uses: EndBug/add-and-commit@v4
with:

View File

@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Run tests
@ -25,7 +25,7 @@ jobs:
runs-on: ${{matrix.os}}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Zig
uses: goto-bus-stop/setup-zig@default
with:

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
node_modules
# Logs
logs
*.log

View File

@ -14,5 +14,5 @@ inputs:
required: false
default: 'true'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'

2652
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,7 @@
"url": "https://github.com/goto-bus-stop/setup-zig.git"
},
"scripts": {
"prepare": "esbuild index.js --outdir=dist --keep-names --bundle --platform=node --target=node16",
"prepare": "esbuild index.js --outdir=dist --keep-names --bundle --platform=node --target=node20",
"test": "standard && node test"
},
"standard": {