Skip to content

Commit

Permalink
Use setup-node to control Node version to build
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Jan 24, 2024
1 parent f1361c7 commit b613609
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/build-dist/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ name: 'Build and upload distribution'
runs:
using: "composite"
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build distribution
shell: bash
run: |
npm -v
node -v
npm install
npm run build
- name: Upload distribution
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-verify-outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build
run: |
npm -v
Expand Down

0 comments on commit b613609

Please sign in to comment.