From 632018971731fdf9e3db193862d939be293976db Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Mon, 6 Sep 2021 13:31:01 -0700 Subject: [PATCH] Specify node version --- .github/workflows/main.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ffea8773e..2a5eac9be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,21 +24,17 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - - name: Cache NPM dependencies - uses: actions/cache@v1 + - uses: actions/setup-node@v2 with: - path: ~/.npm - key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-npm-cache- + node-version: "14" + cache: "npm" + + - name: Install Dependencies + run: npm ci - name: Test run: npm run test - - name: Install NPM dependencies - run: npm ci - - name: Build run: npm run build