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

This commit is contained in:
Oscar Dominguez 2021-07-05 02:42:20 +02:00
commit eafd8355c3
2 changed files with 133 additions and 133 deletions

View file

@ -13,8 +13,7 @@ on:
pull_request:
branches:
- main
workflow_dispatch:
workflow_dispatch: null
jobs:
check-dist:
runs-on: ubuntu-latest
@ -23,9 +22,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: Install dependencies
run: npm ci