Skip to content

Commit 15f0d90

Browse files
authored
fix: Move cache directory to the system temp folder to avoid permission issues (react-native-community#59 by @Naturalclar)
1 parent 551b657 commit 15f0d90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
key: yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
3838
- run:
3939
name: Yarn Install
40-
command: yarn install --non-interactive --cache-folder ~/.cache/yarn
40+
command: yarn install --non-interactive --cache-folder /tmp/yarn
4141
- save_cache:
4242
paths:
43-
- ~/.cache/yarn
43+
- /tmp/yarn
4444
key: yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
4545
- run:
4646
name: Add Github to known hosts
@@ -71,4 +71,4 @@ workflows:
7171
requires: [pack]
7272
filters:
7373
branches:
74-
only: master
74+
only: master

src/commands/yarn_install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ steps:
1212
- yarn-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ checksum "~/.tmp/checksumfiles/yarn.lock" }}-{{ .Environment.CACHE_VERSION }}
1313
- run:
1414
name: Yarn Install
15-
command: yarn install --frozen-lockfile --non-interactive --cache-folder ~/.cache/yarn
15+
command: yarn install --frozen-lockfile --non-interactive --cache-folder /tmp/yarn
1616
- save_cache:
1717
paths:
18-
- ~/.cache/yarn
18+
- /tmp/yarn
1919
key: |
2020
yarn-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ checksum "~/.tmp/checksumfiles/yarn.lock" }}-{{ .Environment.CACHE_VERSION }}

0 commit comments

Comments
 (0)