Until now you ran the typecheck, made the build and uploaded it to the store yourself. Forget one step and a wrong build can reach the testers. CI/CD hands that work to a robot: it checks every code change automatically (CI, continuous integration), then builds and ships the app automatically (CD, continuous delivery). It's like the QC table at Mrs. Rini's laundry. Every basket is counted and checked for stains before ironing: that's CI. Laundry that passes is wrapped, its receipt stamped and given a running number, and a courier delivers it: that's CD. In Mrs. Rini's Laundry app, the basket is a pull request (PR), the checks are typecheck, lint and Jest, the running number is versionCode, the stamp is signing, and the courier is EAS Submit.
Why mobile CI/CD is harder than the web's
On the web, a deploy is done the moment the new files are on the server. On mobile, three things make the pipeline itself heavier:
- Slow builds. Native code is compiled first (Gradle for Android, Xcode for iOS): minutes, not seconds.
- iOS builds need macOS. Xcode only runs on a Mac. On GitHub Actions a macOS runner costs 0.062 dollars a minute and a Linux runner 0.006 (private repos; public repos are free): about 10 times as much.
- Signing and provisioning. A release build is signed with a keystore (Android) or a certificate plus a provisioning profile (iOS), and those keys must never leak.
Outside the pipeline there's still store review and old versions staying installed on customers' phones, but those three are what make mobile CI/CD different. The popular tools: EAS Build (builds on Expo's servers, iOS included, with no Mac of your own), fastlane (automates signing, building and uploading), Bitrise (a CI service made for mobile), and GitHub Actions (with a macOS runner if you build iOS yourself). Here GitHub Actions runs the checks, and EAS does build, update and submit.
Step 1: checks on every pull request
# .github/workflows/check.yml
name: Check
on:
pull_request:
push:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: npm ci
- run: npx tsc --noEmit
- run: npx expo lint
- run: npm run test:ci
- The checks run on every PR and after a merge to
main, on a Linux runner (ubuntu-latest), because they need no Mac. actions/checkout@v7(v7.0.1) andactions/setup-node@v7(v7.1.0) are the latest as of 11 October 2026. The examples in Expo's docs still say@v5and@v6.cache: npmcaches npm downloads keyed onpackage-lock.json. The firstnpx expo lintinstallseslint9 andeslint-config-expo57.0.2 and writeseslint.config.js: commit that file.npm run test:cirunsjest --ci. There are no secrets in this file: GitHub doesn't pass secrets to workflows from fork PRs, so the check job has to work without them.
The first time it ran in this project, Jest also picked up the Detox test in e2e/:
$ npx jest --ci
FAIL e2e/order.test.js
● My orders › opens the detail of order #13
ReferenceError: device is not defined
Tests: 1 failed, 1 passed, 2 total
device only exists when Detox runs the test. Add "testPathIgnorePatterns": ["/node_modules/", "/e2e/"] to the jest section of package.json, and the result is Tests: 1 passed, 1 total in 1.98 seconds.
Build profiles in eas.json
{
"cli": { "version": ">= 24.12.1", "appVersionSource": "remote" },
"build": {
"development": { "developmentClient": true, "distribution": "internal",
"environment": "development", "env": { "APP_VARIANT": "development" } },
"preview": { "distribution": "internal", "channel": "preview",
"environment": "preview", "android": { "buildType": "apk" } },
"production": { "channel": "production", "environment": "production", "autoIncrement": true }
},
"submit": { "production": { "android": { "track": "internal" } } }
}
development: a development build withexpo-dev-clientand the.devID fromAPP_VARIANT(the Expo lesson).preview:distribution: "internal", installed by testers from a link, Android as an APK. Such an APK is not yet covered by Android developer verification, which since 30 September 2026 applies to apps from stores that take part in the program, but Google plans to apply it to all apps in 2027 (the publishing lesson).production:.aaband.ipafor the stores.autoIncrementwithappVersionSource: "remote"bumpsversionCodeandbuildNumberon the EAS server (the publishing lesson).channelis the update channel baked into the build,environmentthe set of EAS variables for that build, andeas buildwithout--profileusesproduction.
EAS Update: channels and runtimeVersion
Every build carries three labels: platform, channel, and runtimeVersion (the identity of its native layer). An update is only installed on builds whose platform and runtimeVersion match exactly, through that build's channel: eas update --channel preview --environment preview (--environment is required for projects on SDK 55 and later). The runtimeVersion comes from a policy in app.config.ts, after npx expo install expo-updates:
runtimeVersion: { policy: 'fingerprint' },
appVersion: equalsversion("1.0.0"). Forget to bump it when native code changes and a broken update gets in.nativeVersion:versionplus the build number, for example"1.0.0(1)".fingerprint: a hash of everything that affects the native layer, computed by@expo/fingerprint. That's the one used here.
Guess first: in one PR you add the native library expo-haptics and change some text in OrderRow. After the merge you run eas update --channel preview. Does a tester's phone with last week's preview build receive that update?
Measured in this project with npx expo-updates fingerprint:generate --platform android (runs without logging in; eas fingerprint:generate asks for a login):
| Change | Android fingerprint | What it needs |
|---|---|---|
| last week's preview build | af774548… |
|
status in OrderRow made uppercase |
af774548… (same) |
EAS Update |
npx expo install expo-haptics |
563c34c6… |
a new build |
cameraPermission text in app.json |
dfd1c3a1… |
a new build |
submit track in eas.json |
4be0bcb4… |
a new build |
The update from that PR was made for runtime 563c34c6…, while the tester's phone runs af774548…, so that phone doesn't install it. This protects you: with a fixed runtimeVersion of "1.0.0", the tester's phone would load JavaScript that calls native code that isn't there, and expo-updates would have to roll back to the previous update. The iOS fingerprint is computed separately (85371baa…), and eas.json and the scripts in package.json count too.
This table was measured on SDK 57, with @expo/fingerprint 0.20, which has no presets and counts like the strict preset. SDK 58 uses @expo/fingerprint 0.21, whose default preset is balanced: eas.json, .easignore and the version numbers in the app config no longer count (source 0.21.10, Presets.js). So on SDK 58, the track row in eas.json no longer asks for a new build. If you want the old rule, write preset: 'strict' in fingerprint.config.js.
Step 2: build or update, chosen automatically
EAS Workflows (now named CI/CD Workflows on Expo's pricing page) is Expo's own CI, running on Expo's servers once the GitHub repo is linked to the EAS project. Its fingerprint and get-build jobs choose the road:
# .eas/workflows/ship-preview.yml
on:
push:
branches: ['main']
jobs:
fingerprint:
type: fingerprint
environment: preview
find_build_android:
needs: [fingerprint]
type: get-build
params:
fingerprint_hash: ${{ needs.fingerprint.outputs.android_fingerprint_hash }}
profile: preview
build_android:
needs: [find_build_android]
if: ${{ !needs.find_build_android.outputs.build_id }}
type: build
params: { platform: android, profile: preview }
update_android:
needs: [find_build_android]
if: ${{ needs.find_build_android.outputs.build_id }}
type: update
environment: preview
params: { channel: preview, platform: android }
# iOS: the same four jobs with ios_fingerprint_hash and platform: ios
fingerprintcomputes the hash with the same environment as thepreviewprofile.get-buildlooks for a preview build with that hash; an emptybuild_idmeans there is none.- None yet:
build_androidmakes a new build. One exists:update_androidsends the JavaScript to thepreviewchannel. - EAS Workflows don't wait for
check.yml. On GitHub, turn on the branch protection "Require status checks to pass before merging" formain, so a red PR can't be merged. - The pattern comes from the "Deploy to production" example in Expo's docs. Its GitHub Actions version (
continuous-deploy-fingerprint) still says "not yet ready for use".
Step 3: release to TestFlight and Play internal
# .github/workflows/release.yml
name: Release
on:
push:
tags: ['v*']
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with: { node-version: 24, cache: npm }
- uses: expo/expo-github-action@v9
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- run: npm ci
- run: eas build --platform all --profile production --auto-submit --non-interactive --no-wait
- It runs when you push a tag, for example
git tag v1.1.0thengit push --tags.expo/expo-github-action@v9(9.0.0, June 2026) installs EAS CLI and logs in withEXPO_TOKEN. --auto-submitsends the result through theproductionsubmit profile: Android to theinternaltrack, iOS to TestFlight.--no-waitends the job as soon as the build starts, so no GitHub minutes are spent while EAS works.- Run the first submit once by hand (
eas submit), so the Google Service Account key and the App Store Connect API key get stored on EAS.
Without Expo (bare React Native or a native app), the usual road is fastlane (2.241.0): a lane with match for certificates, gradle or build_app to build, then upload_to_play_store and upload_to_testflight, on a macOS runner for iOS.
Secrets: token, keystore and variables
EXPO_TOKEN: create it on the Access tokens page at expo.dev, store it in GitHub under Settings, Secrets and variables, Actions. Never write it in the YAML. Without a token,eas buildstops withAn Expo user account is required to proceed.- Keystores and certificates live in EAS credentials (the publishing lesson), not in the repo. This project's
.gitignorealready ignores*.jks,*.p8,*.p12,*.keyand*.mobileprovision. - Build variables:
eas env:set --name SENTRY_AUTH_TOKEN --value ... --environment production --visibility secret. The old material'seas secret:createis deprecated. Anything that goes into the app's code,EXPO_PUBLIC_API_URLincluded, can be read by whoever unpacks the app.
Maestro on CI: what it costs
The open-order-13.yaml flow from the E2E lesson needs a built app and a running emulator. Prices as of 11 October 2026:
| Option | How | Cost |
|---|---|---|
EAS Workflows, maestro job (still alpha) |
build an E2E profile (APK, iOS simulator), then Maestro on EAS servers | not on the Free plan; on paid plans 0.05 dollars per job, plus the build (counts against your quota) and workflow minutes: Linux 0.018 dollars, macOS 0.075 dollars |
| GitHub Actions with an Android emulator | reactivecircus/android-emulator-runner@v2 on ubuntu-latest |
free for public repos, private 0.006 dollars a minute (iOS simulator on a macOS runner: 0.062) |
| Maestro Cloud | devices on Maestro's servers, in parallel | 250 dollars per device per month |
Say 40 PRs a month and 15 minutes per Android run (example numbers, measure your own runs): 600 minutes × 0.006 = 3.6 dollars on GitHub, 600 × 0.018 + 40 × 0.05 = 12.8 dollars on EAS Workflows (minutes plus the per-job fee), and a flat 250 dollars on Maestro Cloud. For Mrs. Rini: the Android flow on every PR that touches the order screens, iOS once a day.
⚠️ Pipelines that go red, leak or cost too much
- Jest also runs the Detox test. CI goes red with
ReferenceError: device is not defined. Add"/e2e/"totestPathIgnorePatterns. eas updateafter changing native code. Use thefingerprintpolicy and let the workflow choose between a build and an update.- A token or keystore in the repo. The token goes in GitHub Secrets, the keystore in EAS credentials.
- Building iOS on a macOS runner for every PR. About 10 times the Linux price. Check on Linux, build on EAS, run iOS E2E once a day.
TL;DR: Mobile CI/CD is harder than the web's because native builds are slow, iOS builds need macOS, and signing and provisioning must be guarded; the popular tools are EAS Build, fastlane, Bitrise and GitHub Actions. For Mrs. Rini's Laundry: GitHub Actions (actions/checkout@v7, actions/setup-node@v7, Node 24) runs tsc --noEmit, expo lint and jest --ci on every PR with no secrets, with e2e/ kept out of Jest. eas.json has the profiles development, preview (internal, APK, channel preview) and production (autoIncrement, appVersionSource: "remote"). An update only installs on builds with the same platform and runtimeVersion; the fingerprint policy changes the runtime as soon as the native side changes (a native library, app.json, even eas.json), and EAS Workflows (fingerprint, get-build) chooses a new build or an update. A v* tag runs eas build --profile production --auto-submit through expo/expo-github-action@v9 to TestFlight and the internal track. EXPO_TOKEN in GitHub Secrets, keystores in EAS credentials, variables with eas env:set. Maestro on CI: an Android emulator on GitHub is cheapest, Maestro Cloud is 250 dollars per device per month; without Expo, fastlane.
⚡ Why mobile is harder
Meaning: Native builds are slow, iOS builds need macOS (a macOS runner on GitHub costs about 10 times a Linux one), and signing keystores and certificates must never leak. Widely used CI/CD platforms: EAS Build, fastlane, Bitrise and GitHub Actions.
⚡ Checks on every pull request
Write:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: npm ci
- run: npx tsc --noEmit
- run: npx expo lint
- run: npm run test:ci
Meaning: The checks run on a Linux runner because they need no Mac, and with no secrets, because GitHub doesn't pass secrets to workflows from fork PRs.
⚡ A new build or an update
Guess first: one PR adds the native library expo-haptics and changes some text in OrderRow. After the merge you run eas update --channel preview. Does a tester's phone with last week's preview build receive that update?
No. The fingerprint changed from af774548… to 563c34c6…, and an update only installs on builds with the same platform and runtimeVersion.
Meaning: The fingerprint policy protects testers' phones from JavaScript that calls native code that isn't there. EAS Workflows (fingerprint, get-build) chooses on its own: a new build or an update.