From 347c2b81580f280734e9147d95b56540264f7c02 Mon Sep 17 00:00:00 2001 From: Barry Gordon Date: Tue, 28 Sep 2021 15:35:43 +0100 Subject: [PATCH] Use the nvmrc version in CI --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a123b8..ae2d7ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Read .nvmrc + id: nvm + run: echo ::set-output name=NVMRC::$(cat .nvmrc) + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: ${{ steps.nvm.outputs.NVMRC }} - run: npm ci - run: npm run all test: # make sure the action works on a clean machine without building