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

pull/608/head
Oscar Dominguez 4 years ago
parent 5807af2642
commit 16f6b94fce

@ -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:

Loading…
Cancel
Save