Use Node.js 16 in workflow (which ships with npm 7)

This commit is contained in:
arkon 2021-07-31 10:56:59 -04:00
parent 724274590f
commit 12d3816a5f

View File

@ -14,21 +14,18 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Node 12 - name: Setup Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 12 node-version: 16
- name: Setup NPM 7
run: npm install -g npm@7
- name: Check cache - name: Check cache
uses: actions/cache@v2 uses: actions/cache@v2
id: npm-cache id: npm-cache
with: with:
path: '**/node_modules' path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies - name: Install dependencies
if: steps.npm-cache.outputs.cache-hit != 'true' if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm install run: npm install