feat(ci) cache npm package data

Ref: https://github.com/actions/setup-node#caching-global-packages-data
This commit is contained in:
Saúl Ibarra Corretgé 2022-10-03 09:17:44 +02:00 committed by Saúl Ibarra Corretgé
parent 230cbfac1e
commit 090433b6e8
1 changed files with 9 additions and 6 deletions

View File

@ -8,9 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: 16
cache: 'npm'
- run: npm install
- name: Check git status
run: git status
@ -25,9 +26,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: 16
cache: 'npm'
- run: npm install
- run: make
macos-ci:
@ -35,8 +37,9 @@ jobs:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: 16
cache: 'npm'
- run: npm install
- run: make