Skip to content

Commit af3570d

Browse files
oscard0mgr2m
andauthored
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#30)
Co-authored-by: Gregor Martynus <[email protected]>
1 parent 03c7997 commit af3570d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- uses: actions/setup-node@v2
1414
with:
1515
node-version: 16
16+
cache: npm
1617
- run: npx semantic-release
1718
env:
1819
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-node@v2
16+
with:
17+
cache: npm
1618
- run: npm ci
1719
- run: npm test

0 commit comments

Comments
 (0)