Skip to content

Commit dd7d0df

Browse files
authored
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#33)
1 parent cc24c77 commit dd7d0df

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/inception.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
12+
- uses: actions/setup-node@v2
13+
with:
14+
cache: npm
1315
- run: npm ci
1416
- run: npm run build
1517
- uses: ./

.github/workflows/release.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: 16
16+
cache: npm
1617
- run: npm ci
1718
- run: npm run build
1819
- run: rm .gitignore # dist/ folder is ignored by default

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
13+
with:
14+
cache: npm
1315
- run: npm ci
1416
- run: npm test

0 commit comments

Comments
 (0)