Skip to content

Commit

Permalink
Update all Github Actions to use Node v20
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffesquivels committed May 29, 2024
1 parent d54978e commit ca3d8e1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --ignore-scripts
Expand All @@ -19,16 +19,16 @@ jobs:
PREBUILD_ARCH: arm64
- run: tar --create --format ustar --verbose --file=prebuild-darwin.tar -C prebuilds .
- name: Prebuild
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: prebuild-darwin.tar
build-linux:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --ignore-scripts
Expand All @@ -37,22 +37,22 @@ jobs:
- run: npm run prebuild-linux-arm64-musl
- run: tar --create --verbose --file=prebuild-linux.tar -C prebuilds .
- name: Prebuild
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: prebuild-linux.tar
build-windows:
if: startsWith(github.ref, 'refs/tags/')
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --ignore-scripts
- run: npm run prebuild
- run: tar --create --verbose --file=prebuild-windows.tar -C prebuilds .
- name: Prebuild
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: prebuild-windows.tar
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@ jobs:
test-macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm test
test-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm test
test-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
Expand Down

0 comments on commit ca3d8e1

Please sign in to comment.