Skip to content

Commit b1a812f

Browse files
committed
use node version from nvmrc in build
1 parent f5677d1 commit b1a812f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jobs:
2222
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2323
restore-keys: |
2424
${{ runner.os }}-yarn-
25+
- name: Read .nvmrc
26+
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
27+
id: nvm
28+
- name: Use Node.js (.nvmrc)
29+
uses: actions/setup-node@v1
30+
with:
31+
node-version: "${{ steps.nvm.outputs.NVMRC }}"
2532
- name: Install Dependencies
2633
run: yarn install
2734
- name: Build

0 commit comments

Comments
 (0)