Skip to content

Commit e54ad83

Browse files
authored
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#25)
1 parent 21d7427 commit e54ad83

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
@@ -13,6 +13,7 @@ jobs:
1313
- uses: actions/setup-node@v2
1414
with:
1515
node-version: 12
16+
cache: npm
1617
- run: npm ci
1718
- uses: azure/login@v1
1819
with:

.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)