Updated to npm 10 #286
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node CI | |
on: [push, pull_request_target] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, 16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
check-latest: true | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- name: npm 10 | |
run: npm i -g npm@10 --registry=https://registry.npmjs.org | |
- name: install dependencies | |
run: npm ci | |
- name: build, and test the package | |
run: | | |
npm run build | |
npm test | |
env: | |
CI: true |