Skip to content

Commit d062057

Browse files
committed
add cache version in install node modules
1 parent 94c7e75 commit d062057

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
- checkout
1313
- restore_cache:
1414
keys:
15-
- yarn-lock-{{ checksum "yarn.lock" }}
16-
- yarn-cache-{{ checksum "yarn.lock" }}
15+
- yarn-lock-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
16+
- yarn-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
1717
- run:
1818
name: Environemnt Variable Check
1919
command: |
@@ -27,11 +27,11 @@ jobs:
2727
name: Install Dependencies
2828
command: yarn install
2929
- save_cache:
30-
key: yarn-lock-{{ checksum "yarn.lock" }}
30+
key: yarn-lock-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
3131
paths:
3232
- node_modules
3333
- save_cache:
34-
key: yarn-cache-{{ checksum "yarn.lock" }}
34+
key: yarn-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }}
3535
paths:
3636
- /usr/local/share/.cache/yarn
3737
- persist_to_workspace:

0 commit comments

Comments
 (0)