Skip to content

Commit

Permalink
Use the nvmrc version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Sep 28, 2021
1 parent c35b195 commit 347c2b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
id: nvm
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
- run: npm ci
- run: npm run all
test: # make sure the action works on a clean machine without building
Expand Down

0 comments on commit 347c2b8

Please sign in to comment.