Skip to content

Commit 2b0c9ba

Browse files
authored
ci: fix circleci shared caching issue (Synthetixio#1120)
* ci: set custom delimiter to avoiid checksum parsing Signed-off-by: Jakub Mucha <jakub.mucha@icloud.com> * ci: generated new config Signed-off-by: Jakub Mucha <jakub.mucha@icloud.com> * ci: fix github auth issue Signed-off-by: Jakub Mucha <jakub.mucha@icloud.com>
1 parent 88e7a2c commit 2b0c9ba

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ jobs:
6060
- checkout
6161
- restore_cache:
6262
keys:
63-
- "v4-dependencies-"
63+
- v4-dependencies-{{ checksum "package-lock.json" }}
6464
- run: npm install
6565
- save_cache:
66-
key: "v4-dependencies-"
66+
key: v4-dependencies-{{ checksum "package-lock.json" }}
6767
paths:
6868
- node_modules
6969
- persist_to_workspace:

.circleci/src/jobs/job-prepare.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Bootstraps dependencies
22
{{> job-header.yml}}
3+
# set custom delimiter to avoid checksum parsing
4+
{{=<% %>=}}
35
steps:
46
- checkout
57
- restore_cache:
68
keys:
7-
- 'v4-dependencies-{{ checksum "package-lock.json" }}'
9+
- v4-dependencies-{{ checksum "package-lock.json" }}
810
- run: npm install
911
- save_cache:
10-
key: 'v4-dependencies-{{ checksum "package-lock.json" }}'
12+
key: v4-dependencies-{{ checksum "package-lock.json" }}
1113
paths:
1214
- node_modules
1315
- persist_to_workspace:

0 commit comments

Comments
 (0)