Skip to content

Commit 1429700

Browse files
authored
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#72)
1 parent 6eb9615 commit 1429700

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v1
16+
- uses: actions/setup-node@v2
1717
with:
1818
node-version: 12
19+
cache: npm
1920
- run: npm ci
2021
- run: npm run build --if-present
2122
- run: npx semantic-release

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ jobs:
1919

2020
# Setup Node.js with the correct version
2121
- name: Use Node.js ${{ matrix.node }}
22-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v2
2323
with:
2424
node-version: ${{ matrix.node }}
25+
cache: npm
2526

2627
# Cache dependencies
2728
- uses: actions/cache@v1

0 commit comments

Comments
 (0)