Skip to content

Commit

Permalink
Using nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Nov 3, 2023
1 parent baa7b00 commit 1aac0c1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Use Node.js (.nvmrc)
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
node-version-file: '.nvmrc'
- name: Cache node modules
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 1aac0c1

Please sign in to comment.