Skip to content

Commit

Permalink
ci(workflow): add cache to workflows using actions/setup-node (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m authored Dec 30, 2021
1 parent 7a0f7a9 commit 5e2e068
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: build-test
on:
pull_request:
paths-ignore:
- '**.md'
push:
- '**.md'
push:
branches:
- main
- releases/*
paths-ignore:
- '**.md'

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -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
Expand Down

0 comments on commit 5e2e068

Please sign in to comment.