Skip to content

Commit

Permalink
Always pack on the latest node version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 25, 2023
1 parent 9ad9b4e commit 4f738f5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

env:
LATEST_NODE: 20

name: main
jobs:
test:
Expand Down Expand Up @@ -44,10 +47,10 @@ jobs:

- run: npm run demo

- if: matrix.node == '18' && matrix.os == 'ubuntu-latest'
- if: matrix.node == '${{ env.LATEST_NODE }}' && matrix.os == 'ubuntu-latest'
run: npm pack

- if: matrix.node == '18' && matrix.os == 'ubuntu-latest'
- if: matrix.node == '${{ env.LATEST_NODE }}' && matrix.os == 'ubuntu-latest'
name: Upload package
uses: actions/upload-artifact@v3
with:
Expand All @@ -63,7 +66,7 @@ jobs:
steps:
- run: apt update && apt install -y curl

- run: curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
- run: curl -fsSL https://deb.nodesource.com/setup_${{ env.LATEST_NODE }}.x | bash -

- run: apt install -y nodejs

Expand Down

0 comments on commit 4f738f5

Please sign in to comment.