Skip to content

Commit efc78a5

Browse files
authored
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#242)
1 parent 4fa5c21 commit efc78a5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
- uses: actions/setup-node@v2
17-
- uses: bahmutov/npm-install@v1
17+
with:
18+
cache: npm
19+
- run: npm ci
1820
- run: npx semantic-release
1921
env:
2022
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
uses: actions/setup-node@v2
2828
with:
2929
node-version: "${{ matrix.node-version }}"
30-
- uses: bahmutov/npm-install@v1
30+
cache: npm
31+
- run: npm ci
3132
- run: "npm run test:ci"
3233
test:
3334
runs-on: ubuntu-latest
@@ -38,5 +39,6 @@ jobs:
3839
uses: actions/setup-node@v2
3940
with:
4041
node-version: "${{ matrix.node-version }}"
41-
- uses: bahmutov/npm-install@v1
42+
cache: npm
43+
- run: npm ci
4244
- run: npm run lint

0 commit comments

Comments
 (0)