Skip to content

Commit 9ca0cb2

Browse files
committed
chore: use NPM cache in setup-node
1 parent 8c21392 commit 9ca0cb2

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
@@ -6,17 +6,18 @@ jobs:
66
build:
77

88
runs-on: ubuntu-latest
9-
9+
1010
strategy:
1111
matrix:
1212
node-version: [12.x, 14.x, 16.x]
1313

1414
steps:
1515
- uses: actions/checkout@v1
1616
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v2
1818
with:
1919
node-version: ${{ matrix.node-version }}
20+
cache: npm
2021
- name: npm install, build, and test
2122
run: |
2223
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)