File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 17
17
# # IMPORTANT
18
18
# Windows needs its own cache key because binaries in node_modules are different.
19
19
# See https://circleci.com/docs/2.0/caching/#restoring-cache for how prefixes work in CircleCI.
20
- var_1 : &cache_key angular_devkit-12.18-{{ checksum "yarn.lock" }}
21
- var_1_win : &cache_key_win angular_devkit-win-12.18-{{ checksum "yarn.lock" }}
20
+ var_1 : &cache_key v1- angular_devkit-12.18-{{ checksum "yarn.lock" }}
21
+ var_1_win : &cache_key_win v1- angular_devkit-win-12.18-{{ checksum "yarn.lock" }}
22
22
var_3 : &default_nodeversion "12.18"
23
23
# Workspace initially persisted by the `setup` job, and then enhanced by `setup-and-build-win`.
24
24
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
@@ -141,7 +141,7 @@ jobs:
141
141
- restore_cache :
142
142
keys :
143
143
- *cache_key
144
- - run : yarn install --frozen-lockfile
144
+ - run : yarn install --frozen-lockfile --cache-folder ~/.cache/yarn
145
145
- persist_to_workspace :
146
146
root : *workspace_location
147
147
paths :
@@ -304,13 +304,12 @@ jobs:
304
304
- restore_cache :
305
305
keys :
306
306
- *cache_key_win
307
- - run : yarn install --frozen-lockfile
307
+ - run : yarn install --frozen-lockfile --cache-folder ../.cache/yarn
308
308
- run : yarn build
309
309
- save_cache :
310
310
key : *cache_key_win
311
311
paths :
312
- # Get cache dir on windows via `yarn cache dir`
313
- - C:\Users\circleci\AppData\Local\Yarn\Cache\v4
312
+ - ~/.cache/yarn
314
313
# Only jobs downstream from this one will see the updated workspace
315
314
# https://circleci.com/blog/deep-diving-into-circleci-workspaces/
316
315
- persist_to_workspace :
You can’t perform that action at this time.
0 commit comments