Reduce install network flake (#27464)
## Summary Avoids potentially flaky network calls leading to failures such as https://app.circleci.com/pipelines/github/facebook/react/47096/workflows/b7966c1d-199c-4185-8d17-ac6485235c3a/jobs/727782. Also makes install faster since we don't need the binary in CI seemingly. Electron itself is used to start the standalone binary. ## How did you test this change? - [x] CI still passes without the binary downloaded. I'm just trusting [their docs](https://www.electronjs.org/docs/latest/tutorial/installation) here that setting this actually ensures the binary isn't downloaded.
Sebastian Silbermann committed
Oct 5, 2023 at 11:37 UTC
16619f106ab5ba8e6aca19d55be46cce22e4a7ff
1 file changed
+3
.circleci/config.yml
+3
@@ -53,6 +53,9 @@ commands:
53
if [ $? -ne 0 ]; then
54
yarn install --frozen-lockfile --cache-folder ~/.cache/yarn
55
fi
56
+ environment:
57
+ # If we start needing the Electron binary, please ensure the binary is cached in CI following https://www.electronjs.org/docs/latest/tutorial/installation
58
+ ELECTRON_SKIP_BINARY_DOWNLOAD: 1
59
- save_cache:
60
name: Save yarn cache
61
key: v2-yarn_cache-{{ arch }}-{{ checksum "yarn.lock" }}