Skip to content

Commit

Permalink
optim(ci): use npm ci for install and cache npm (#323)
Browse files Browse the repository at this point in the history
- `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
  • Loading branch information
agilgur5 authored May 10, 2022
1 parent 7af216b commit 327574e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run build-self
- run: npm run build-self
Expand Down

0 comments on commit 327574e

Please sign in to comment.