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

This commit is contained in:
Oscar Dominguez 2021-07-05 02:42:12 +02:00
parent 43c2dc443f
commit e12e6648f0

View file

@ -4,10 +4,10 @@ on:
branches:
- main
paths-ignore:
- '**.md'
- "**.md"
pull_request:
paths-ignore:
- '**.md'
- "**.md"
jobs:
run:
name: Run
@ -20,9 +20,10 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12.x
cache: npm
- name: npm install
run: npm install