Skip to content

Commit 5e2e068

Browse files
authored
ci(workflow): add cache to workflows using actions/setup-node (actions#287)
1 parent 7a0f7a9 commit 5e2e068

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-test.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: build-test
33
on:
44
pull_request:
55
paths-ignore:
6-
- '**.md'
7-
push:
6+
- '**.md'
7+
push:
88
branches:
99
- main
1010
- releases/*
1111
paths-ignore:
1212
- '**.md'
13-
13+
1414
jobs:
1515
build:
1616
runs-on: ${{ matrix.os }}
@@ -23,6 +23,7 @@ jobs:
2323
uses: actions/setup-node@v2
2424
with:
2525
node-version: 12.x
26+
cache: npm
2627
- run: npm ci
2728
- run: npm run build
2829
- run: npm run format-check

0 commit comments

Comments
 (0)