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 bac7d03 commit baa7b00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.x
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Use Node.js (.nvmrc)
uses: actions/setup-node@v3
with:
node-version: 20.x
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- name: Cache node modules
uses: actions/cache@v3
with:
Expand Down

0 comments on commit baa7b00

Please sign in to comment.