File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1515 uses : actions/setup-node@v2
1616 with :
1717 node-version : 12
18+ - name : Cache node modules
19+ uses : actions/cache@v2
20+ env :
21+ cache-name : cache-node-modules
22+ with :
23+ # npm cache files are stored in `~/.npm` on Linux/macOS
24+ path : ~/.npm
25+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
26+ restore-keys : |
27+ ${{ runner.os }}-build-${{ env.cache-name }}-
28+ ${{ runner.os }}-build-
29+ ${{ runner.os }}-
1830 - name : Install dependencies
1931 env :
2032 CI : true
3345 - uses : actions/setup-node@v2
3446 with :
3547 node-version : 12
48+ - name : Cache node modules
49+ uses : actions/cache@v2
50+ env :
51+ cache-name : cache-node-modules
52+ with :
53+ # npm cache files are stored in `~/.npm` on Linux/macOS
54+ path : ~/.npm
55+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
56+ restore-keys : |
57+ ${{ runner.os }}-build-${{ env.cache-name }}-
58+ ${{ runner.os }}-build-
59+ ${{ runner.os }}-
3660 - env :
3761 CI : true
3862 run : |
Original file line number Diff line number Diff line change 1212 uses : actions/setup-node@v2
1313 with :
1414 node-version : 12
15+ - name : Cache node modules
16+ uses : actions/cache@v2
17+ env :
18+ cache-name : cache-node-modules
19+ with :
20+ # npm cache files are stored in `~/.npm` on Linux/macOS
21+ path : ~/.npm
22+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
23+ restore-keys : |
24+ ${{ runner.os }}-build-${{ env.cache-name }}-
25+ ${{ runner.os }}-build-
26+ ${{ runner.os }}-
1527 - name : Install dependencies
1628 env :
1729 CI : true
2941 - uses : actions/setup-node@v2
3042 with :
3143 node-version : 12
44+ - name : Cache node modules
45+ uses : actions/cache@v2
46+ env :
47+ cache-name : cache-node-modules
48+ with :
49+ # npm cache files are stored in `~/.npm` on Linux/macOS
50+ path : ~/.npm
51+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
52+ restore-keys : |
53+ ${{ runner.os }}-build-${{ env.cache-name }}-
54+ ${{ runner.os }}-build-
55+ ${{ runner.os }}-
3256 - env :
3357 CI : true
3458 run : |
You can’t perform that action at this time.
0 commit comments