Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 45bbf40

Browse files
committed
Update build and test GitHub action to use nvmrc instead of node matrix
1 parent 70e79cb commit 45bbf40

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/push.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88

9-
strategy:
10-
matrix:
11-
node-version: [8.x, 10.x, 12.x]
12-
139
steps:
1410
- uses: actions/checkout@v2
15-
- name: Use Node.js ${{ matrix.node-version }}
11+
- name: Read .nvmrc
12+
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
13+
id: nvm
14+
- name: Use Node.js (.nvmrc)
1615
uses: actions/setup-node@v1
1716
with:
18-
node-version: ${{ matrix.node-version }}
17+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
1918
- run: npm install
2019
- run: npm run build --if-present
2120
- run: npm test

0 commit comments

Comments
 (0)