Skip to content

Commit 18e3c05

Browse files
authored
(ci/optim): add caching for yarn install (#625)
- via bahmutov/npm-install - it handles all the cache steps, yarn vs. npm, OS differences, etc
1 parent 77e7c70 commit 18e3c05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
with:
1818
node-version: 10.x
1919

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

2323
- name: Lint codebase
2424
run: yarn lint:post-build
@@ -40,8 +40,8 @@ jobs:
4040
with:
4141
node-version: ${{ matrix.node }}
4242

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

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

0 commit comments

Comments
 (0)