Skip to content

Commit 4fa8897

Browse files
authored
Merge pull request #147 from nschonni/setup-node-cache
chore: use NPM cache in setup-node
2 parents f74ee45 + 9ca0cb2 commit 4fa8897

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/nodejs.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ jobs:
88
build:
99

1010
runs-on: ubuntu-latest
11-
11+
1212
strategy:
1313
matrix:
1414
node-version: [12.x, 14.x, 16.x]
1515

1616
steps:
1717
- uses: actions/checkout@v1
1818
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v2
2020
with:
2121
node-version: ${{ matrix.node-version }}
22+
cache: npm
2223
- name: npm install, build, and test
2324
run: |
2425
npm ci

.github/workflows/publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
with:
1414
node-version: 14
1515
registry-url: https://registry.npmjs.org/
16+
cache: npm
1617
- run: npm ci
1718
- run: npm run build --if-present
1819
- run: npm test

0 commit comments

Comments
 (0)