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

This commit is contained in:
Oscar Dominguez 2021-07-05 02:41:41 +02:00
parent 38d90ce44d
commit 6e4fd75701

View file

@ -3,13 +3,13 @@ name: build-test
on:
pull_request:
paths-ignore:
- '**.md'
- "**.md"
push:
branches:
- main
- releases/*
paths-ignore:
- '**.md'
- "**.md"
jobs:
build:
@ -23,6 +23,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 12.x
cache: npm
- run: npm ci
- run: npm run build
- run: npm run format-check