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>
This commit is contained in:
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: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- run: npm install - run: npm install
- uses: EndBug/add-and-commit@v4 - uses: EndBug/add-and-commit@v4
with: with:

View File

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

2
.gitignore vendored
View File

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

View File

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

2450
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" "url": "https://github.com/goto-bus-stop/setup-zig.git"
}, },
"scripts": { "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" "test": "standard && node test"
}, },
"standard": { "standard": {