Skip to content

Commit f308e52

Browse files
committed
fix: try node-version in nvmrc
1 parent 674199a commit f308e52

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: CI
22

3-
on:
4-
push:
5-
branches:
6-
- 'master'
7-
pull_request:
8-
branches:
9-
- '**'
3+
on: [push]
104

115
jobs:
126
tests:
@@ -23,10 +17,14 @@ jobs:
2317
fetch-depth: 0
2418
# pulls all tags (needed for lerna / semantic release to correctly version)
2519
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
20+
- name: Setup Nodejs Env
21+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
22+
- name: Print env value
23+
run: echo ${{ env.NODE_VER }}
2624
- name: Setup Nodejs
2725
uses: actions/setup-node@v1
2826
with:
29-
node-version: ${{ matrix.node }}
27+
node-version: ${{ env.NODE_VER }}
3028
# lerna expects to be authenticated for publishing to NPM. This step will fail CI if NPM is not
3129
# authenticated, even though this build does _not_ attempt to publish, as an extra check before merge
3230
# that Lerna is set to publish.

0 commit comments

Comments
 (0)