mirror of
https://github.com/expo/examples.git
synced 2026-11-13 20:38:07 -10:00
This PR was automatically created by the [upgrade workflow](./.github/workflows/upgrade.yml). > ⚠️ Review the [job logs](https://github.com/expo/examples/actions/runs/28587793003) before merging Co-authored-by: amandeepmittal <[email protected]>
Remote Build Cache Provider Example
Example demonstrating how to create a custom build cache provider for Expo CLI. Uses GitHub to store builds.
🚀 How to use
-
Create a GitHub Personal Access Token with repo permissions:
- Go to GitHub Settings › Developer settings › Personal access tokens.
- Click Generate new token, select the repo scope, and copy the token.
- Set it in your shell:
export GITHUB_TOKEN=YOUR_TOKEN_HERE
-
Configure your Expo project:
- Open
app.json. - Update the
remoteBuildCacheblock under theexpokey:{ "expo": { "remoteBuildCache": { "provider": "./buildCacheProviderPlugin.js", "options": { "owner": "<YOUR_GITHUB_USERNAME>", "repo": "<YOUR_REPO_NAME>" } } } } - Replace
<YOUR_GITHUB_USERNAME>and<YOUR_REPO_NAME>with your details.
- Open
-
Run
yarnornpm install -
Run
yarn startornpm run startto try it out.
Tip: If you’d rather not create prereleases in your main repository, point
repoto a separate GitHub project or private repo and update therepooption inremoteBuildCache.