Skip to content

Commit 393f301

Browse files
authored
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#157)
1 parent 4664fc1 commit 393f301

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- uses: actions/setup-node@v2
1717
with:
1818
node-version: "12.x"
19+
cache: npm
1920
- run: npm ci
2021
- run: npm run build
2122
- run: npx semantic-release

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ jobs:
2323
uses: actions/setup-node@v2
2424
with:
2525
node-version: "${{ matrix.node_version }}"
26+
cache: npm
2627
- run: npm ci
2728
- run: npm test

0 commit comments

Comments
 (0)