Skip to content

Commit 327574e

Browse files
authored
optim(ci): use npm ci for install and cache npm (#323)
- `npm ci` is installation for, well, CI, and is a good bit faster - c.f. https://docs.npmjs.com/cli/v8/commands/npm-ci - cache `npm` installation with `setup-node` for speedier installs - upgrade `setup-node` as this was released in v2.2.0: https://github.com/actions/setup-node/releases/tag/v2.2.0
1 parent 7af216b commit 327574e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v2
2424
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
25+
uses: actions/setup-node@v2
2626
with:
2727
node-version: ${{ matrix.node-version }}
28-
- run: npm install
28+
cache: 'npm'
29+
- run: npm ci
2930
- run: npm run build
3031
- run: npm run build-self
3132
- run: npm run build-self

0 commit comments

Comments
 (0)