From f5ddf648cb824f5792d9b7ce11cac759b1e2939a Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Thu, 17 Feb 2022 14:57:13 -0700 Subject: [PATCH] Fix CI: npm ERR! Unexpected token '.' --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 66ff694c..0fe60950 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,9 +8,12 @@ jobs: runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v2 - - uses: dcodeIO/setup-node-nvm@master + - name: Use Node.js ${{matrix.node}} + uses: actions/setup-node@v2 with: node-version: ${{matrix.node}} + #cache: npm + - run: npm install -g npm@latest-7 # https://github.com/npm/cli/issues/4341#issuecomment-1040608101 - run: npm install -g npm - run: npm install - run: npm test @@ -22,4 +25,4 @@ jobs: - windows-latest node: - lts/erbium - - node + - 17 # https://github.com/actions/setup-node/pull/279