File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ parameters:
5
5
description : Save and restore the build cache? Defaults to true
6
6
type : boolean
7
7
default : true
8
+ cache_folder :
9
+ description : The path to the yarn cache folder. Defaults to /tmp/yarn
10
+ type : string
11
+ default : " /tmp/yarn"
8
12
9
13
steps :
10
14
- when :
@@ -21,12 +25,12 @@ steps:
21
25
- yarn-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ checksum "~/.tmp/checksumfiles/yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
22
26
- run :
23
27
name : Yarn Install
24
- command : yarn install --frozen-lockfile --non-interactive --cache-folder /tmp/yarn
28
+ command : " yarn install --frozen-lockfile --non-interactive --cache-folder <<parameters.cache_folder>> "
25
29
- when :
26
30
condition : <<parameters.cache>>
27
31
steps :
28
32
- save_cache :
29
33
paths :
30
- - /tmp/yarn
34
+ - <<parameters.cache_folder>>
31
35
key : |
32
36
yarn-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ checksum "~/.tmp/checksumfiles/yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ parameters:
24
24
description : Should we cache after yarn install? Defaults to true
25
25
type : boolean
26
26
default : true
27
+ yarn_cache_folder :
28
+ description : The path to the yarn cache folder
29
+ type : string
30
+ default : " /tmp/yarn"
27
31
# For the iOS build command
28
32
project_type :
29
33
description : If the iOS app is built using a project file (*.xcodeproj) or a workspace.
81
85
homebrew_cache : <<parameters.homebrew_cache>>
82
86
- yarn_install :
83
87
cache : <<parameters.yarn_cache>>
88
+ cache_folder : <<parameters.yarn_cache_folder>>
84
89
- when :
85
90
condition : <<parameters.on_after_initialize>>
86
91
steps :
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ parameters:
28
28
description : Should we cache after yarn install? Defaults to true
29
29
type : boolean
30
30
default : true
31
+ yarn_cache_folder :
32
+ description : The path to the yarn cache folder
33
+ type : string
34
+ default : " /tmp/yarn"
31
35
# For the iOS build command
32
36
project_type :
33
37
description : If the iOS app is built using a project file (*.xcodeproj) or a workspace.
@@ -101,6 +105,7 @@ steps:
101
105
device : <<parameters.device>>
102
106
- yarn_install :
103
107
cache : <<parameters.yarn_cache>>
108
+ cache_folder : <<parameters.yarn_cache_folder>>
104
109
- when :
105
110
condition : <<parameters.on_after_initialize>>
106
111
steps :
You can’t perform that action at this time.
0 commit comments