Skip to content

Commit

Permalink
(ci/optim): add caching for yarn install (#625)
Browse files Browse the repository at this point in the history
- via bahmutov/npm-install
- it handles all the cache steps, yarn vs. npm, OS differences, etc
  • Loading branch information
agilgur5 authored Mar 19, 2020
1 parent 77e7c70 commit 18e3c05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
with:
node-version: 10.x

- name: Install deps and build
run: yarn install --frozen-lockfile
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Lint codebase
run: yarn lint:post-build
Expand All @@ -40,8 +40,8 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Install deps and build
run: yarn install --frozen-lockfile
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Test package
run: yarn test:post-build

0 comments on commit 18e3c05

Please sign in to comment.