Skip to content

Commit 414a33e

Browse files
authored
feat: CI - cache lerna dependencies (#1883)
* feat: ci add lerna cache action
1 parent 3e0abb1 commit 414a33e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,23 @@ jobs:
6767
with:
6868
node-version: ${{ matrix.node-version }}
6969

70+
- name: Restore lerna cache
71+
id: cache
72+
uses: actions/cache@v2
73+
with:
74+
path: |
75+
node_modules
76+
*/*/node_modules
77+
key: ${{ runner.os }}-${{ matrix.webpack-version }}-${{ hashFiles('**/yarn.lock') }}
78+
7079
- name: Install dependencies
80+
if: steps.cache.outputs.cache-hit != 'true'
7181
run: |
7282
yarn
7383
yarn bootstrap
7484
7585
- name: Install webpack ${{ matrix.webpack-version }}
86+
if: steps.cache.outputs.cache-hit != 'true'
7687
run: yarn add -W webpack@${{ matrix.webpack-version }}
7788

7889
- name: Build

0 commit comments

Comments
 (0)