Skip to content

Commit 31572fe

Browse files
committed
Don't try to share cache between E2E and build
This seemed to cause permission issues when restoring the cache.
1 parent b4896b7 commit 31572fe

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.circleci/config.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232
- checkout
3333
- restore_cache:
3434
keys:
35-
- yarn-dependencies-{{ checksum "yarn.lock" }}
36-
- yarn-dependencies-
35+
- yarn-dependencies-cypress-{{ checksum "yarn.lock" }}
36+
- yarn-dependencies-cypress-
3737
- run:
3838
name: Install dependencies
3939
command: yarn install --frozen-lockfile
4040
- save_cache:
41-
key: yarn-dependencies-{{ checksum "yarn.lock" }}
41+
key: yarn-dependencies-cypress-{{ checksum "yarn.lock" }}
4242
paths:
4343
- ~/.cache
4444
- run: yarn e2e:prod
@@ -50,10 +50,15 @@ jobs:
5050
- checkout
5151
- restore_cache:
5252
keys:
53-
- yarn-dependencies-{{ checksum "yarn.lock" }}
53+
- yarn-dependencies-node-{{ checksum "yarn.lock" }}
54+
- yarn-dependencies-node-
5455
- run:
5556
name: Install dependencies
5657
command: yarn install --frozen-lockfile
58+
- save_cache:
59+
key: yarn-dependencies-node-{{ checksum "yarn.lock" }}
60+
paths:
61+
- ~/.cache
5762
- run:
5863
name: Set env variables
5964
command: echo 'export VERSION=$(echo $CIRCLE_SHA1 | cut -c -7)' >> $BASH_ENV

0 commit comments

Comments
 (0)