perf(ci): Cache npm dependencies (#4138)

 Cache npm dependencies
This commit is contained in:
Iván Ovejero 2022-09-20 20:59:49 +02:00 committed by GitHub
parent 3cfc5b55ab
commit 1bdc102892
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,9 +15,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: npm install, build, and test - name: npm install, build, and test
run: | run: |
npm install -g npm@latest npm install -g npm@latest