Skip to content

Commit 130b38a

Browse files
authored
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#3)
1 parent bd3439d commit 130b38a

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.github/workflows/deploy.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
19+
cache: npm
1920
- run: npm ci
2021
- name: serverless deploy
2122
uses: serverless/github-action@master

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- uses: actions/setup-node@v2
1313
with:
1414
node-version: 12
15+
cache: npm
1516
- run: npx semantic-release
1617
env:
1718
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
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)