CI/CD for Mobile

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…

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:

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 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" } } }
}

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' },

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

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

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

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

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.

What you will learn