ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows

This commit is contained in:
Oscar Dominguez 2021-07-18 22:32:42 +02:00
parent 5807af2642
commit 16f6b94fce

View file

@ -6,13 +6,13 @@ on:
- main
- releases/**
paths-ignore:
- '**.md'
- "**.md"
push:
branches:
- main
- releases/**
paths-ignore:
- '**.md'
- "**.md"
jobs:
# Build and unit test
@ -26,9 +26,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: "12.x"
cache: npm
- name: Determine npm cache directory
id: npm-cache
run: |
@ -58,7 +59,6 @@ jobs:
exit 1
fi
# End to end save and restore
test-save:
strategy: