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
@@ -139,7 +139,7 @@ jobs:
139
139
- restore_cache :
140
140
keys :
141
141
- *cache_key
142
- - run : yarn install --frozen-lockfile
142
+ - run : yarn install --frozen-lockfile --cache-folder ~/.cache/yarn
143
143
- persist_to_workspace :
144
144
root : *workspace_location
145
145
paths :
@@ -275,13 +275,12 @@ jobs:
275
275
- restore_cache :
276
276
keys :
277
277
- *cache_key_win
278
- - run : yarn install --frozen-lockfile
278
+ - run : yarn install --frozen-lockfile --cache-folder ../.cache/yarn
279
279
- run : yarn build
280
280
- save_cache :
281
281
key : *cache_key_win
282
282
paths :
283
- # Get cache dir on windows via `yarn cache dir`
284
- - C:\Users\circleci\AppData\Local\Yarn\Cache\v4
283
+ - ~/.cache/yarn
285
284
# Only jobs downstream from this one will see the updated workspace
286
285
# https://circleci.com/blog/deep-diving-into-circleci-workspaces/
287
286
- persist_to_workspace :
You can’t perform that action at this time.
0 commit comments