CI/CD Integration for React Native OTA Updates — Automate, Test, and Ship

Modern React Native development requires automation. CI/CD pipelines, instant testing, and faster rollouts define high-performance mobile teams. React Native Stallion provides first-class support for CI/CD workflows and a blazing-fast testing system built right into your app.

Automate OTA bundle releases via CI/CD, use GitHub Actions to publish on every main merge, and slash dev-to-QA time using Stallion's version switching UI. React Native Stallion supports popular CI/CD platforms including GitHub Actions, Bitrise, CircleCI, Expo, Jenkins, Appcircle, and Codemagic.

Supported CI/CD Platforms

You don't need to replace your CI/CD system to automate OTA releases. Stallion works with popular CI/CD platforms through its CLI, CI tokens, and platform-specific integrations where available.

GitHub Actions

Automate OTA releases directly from GitHub Actions. Publish bundles from your workflow and promote them through your existing release process.

Bitrise

Integrate Stallion CLI commands into Bitrise workflows to publish and manage OTA releases automatically.

CircleCI

Run Stallion CLI commands from CircleCI workflows to automate bundle publishing and release promotion.

Expo

Keep Expo for development and native builds while using Stallion for OTA delivery. Integrate Stallion into your Expo CI workflow to publish and promote updates automatically.

Jenkins

Integrate Stallion into Jenkins pipelines for teams that already use Jenkins for automated builds and releases, including enterprise environments with controlled CI infrastructure.

Appcircle & Codemagic

Integrate Stallion CLI commands into Appcircle or Codemagic workflows to automate React Native OTA publishing and release management.

From Merge to Production

A good CI/CD workflow shouldn't just upload an OTA bundle. It should control how that bundle reaches users.

With Stallion, your pipeline can publish an artifact, validate it, promote it to the right app version, and control how the release rolls out.

Publish → Test → Promote → Roll out

This separation lets teams automate routine releases while keeping production rollout behind the approval and release gates that make sense for their workflow.

Automate Releases Securely With CI Tokens

Stallion supports CI/CD automation through CI tokens designed for use in automated pipelines. Store the token in your CI provider's secret manager instead of putting a developer credential into your workflow.

Step 1: Generate a CI Token

From the Stallion Console:

  1. Go to Project Settings
  2. Open Access Tokens
  3. Generate a CI Token

Step 2: Store It as a CI/CD Secret

Store the token in your CI provider's secret store—GitHub Secrets, Bitrise Secrets, or your provider's equivalent. Use the narrowest available token scope and rotate or revoke credentials if they are compromised.

Step 3: Use the Token in the CLI

npx stallion publish-bundle \
  --upload-path=org-name/project-name/bucket \
  --platform=android \
  --release-note="your release notes" \
  --ci-token="your-ci-token"

Automate OTA Publishing With GitHub Actions

If your team already uses GitHub Actions, adding OTA publishing can be as simple as one additional release step.

name: Publish OTA with Stallion

on:
  push:
    branches:
      - main

jobs:
  publish:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v6

      - name: Setup Node.js
        uses: actions/setup-node@v6
        with:
          node-version: 20

      - name: Install dependencies
        run: npm ci

      - name: Publish OTA Update with Stallion
        run: |
          COMMIT_MSG=$(git log -1 --pretty=format:"%s")
          echo "Publishing with commit message: $COMMIT_MSG"

          npx stallion publish-bundle \
            --upload-path=my-org/my-project/prod \
            --platform=android \
            --release-note="$COMMIT_MSG" \
            --ci-token="${{ secrets.STALLION_CI_TOKEN }}"

Store your CI token as a GitHub secret named STALLION_CI_TOKEN for secure access in your workflows.

Control the Full Release Lifecycle

For teams that need more control than a single publish command, Stallion separates bundle publishing from release promotion and rollout configuration.

That means your pipeline can:

  1. Publish the OTA bundle.
  2. Capture the bundle hash.
  3. Promote the bundle to the target app version.
  4. Set rollout percentage.
  5. Mark the release as mandatory when appropriate.

Need the complete workflow? See the CI/CD documentation →

Complete GitHub Actions Workflow

A complete workflow that publishes bundles, extracts hash, releases, and updates rollout configuration:

name: Stallion Release Automation

on:
  push:
    branches:
      - main

jobs:
  release-bundle:
    runs-on: ubuntu-latest

    env:
      PROJECT_ID: 64f5f341a43eb5ccf93548e4
      APP_VERSION: 1.0.1
      RELEASE_NOTE: "Automated CI Release"
      CI_TOKEN: ${{ secrets.STALLION_CI_TOKEN }}
      UPLOAD_PATH: my-org/my-project/my-bucket
      PLATFORM: android

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Set up Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 20

      - name: Install Stallion CLI
        run: npm install -g stallion-cli

      - name: Publish Bundle and Extract Hash
        id: publish
        run: |
          echo "Publishing bundle..."
          OUTPUT=$(stallion publish-bundle \
            --upload-path=$UPLOAD_PATH \
            --platform=$PLATFORM \
            --release-note="$RELEASE_NOTE")

          echo "$OUTPUT"

          HASH=$(echo "$OUTPUT" | grep -oE '[a-f0-9]{64}')
          echo "Bundle hash: $HASH"

          echo "BUNDLE_HASH=$HASH" >> $GITHUB_ENV

      - name: Release Bundle
        run: |
          stallion release-bundle \
            --project-id=$PROJECT_ID \
            --hash=$BUNDLE_HASH \
            --app-version=$APP_VERSION \
            --release-note="$RELEASE_NOTE" \
            --ci-token=$CI_TOKEN

      - name: Update Release (optional rollout config)
        run: |
          stallion update-release \
            --project-id=$PROJECT_ID \
            --hash=$BUNDLE_HASH \
            --release-note="$RELEASE_NOTE" \
            --rollout-percent=100 \
            --is-mandatory=true \
            --ci-token=$CI_TOKEN

Instant QA with Stallion Testing Framework

Shipping an update is only half the workflow. Your team also needs a fast way to validate the release before pushing it broadly.

Stallion Testing lets authorized testers switch between available OTA releases directly inside a released React Native app using the built-in SDK modal.

No rebuilds. No TestFlight. No APK uploads. Just deploy, switch, and test.

A QA build doesn't have to wait for another native build. Once an OTA release is published, authorized testers can switch to it from the app, validate the change, and move on to the next release candidate—shortening the feedback loop between developer → QA → release without creating another native build for every JavaScript release.

Integrate Stallion Modal

import { useStallionModal } from "react-native-stallion";

const MyDebugScreen = () => {
  const { showModal } = useStallionModal();

  return <Button title="Open Stallion" onPress={showModal} />;
};

Set Up Security Pin

Set a security PIN in the Stallion Console to restrict access to internal testers. Authorized testers can open the Stallion modal, select an available OTA release, download it, and restart the app to validate the version.

Benefits of CI/CD Integration

Automated Releases

Publish OTA updates automatically on every merge to main. No manual intervention required.

Faster QA Cycles

Test builds instantly using Stallion's version switching UI. Slash dev-to-QA time significantly.

Consistent Workflows

Standardize your release process across all platforms and environments with CI/CD automation.

Secure Token Management

CI tokens are scoped only for publishing bundles, ensuring security in your CI/CD pipelines.

Related Resources

Frequently Asked Questions

How do I automate React Native OTA updates with CI/CD?

React Native Stallion lets you automate OTA releases through your existing CI/CD pipeline. Configure a CI token, install the Stallion CLI, and add the appropriate publish and release commands to your workflow. You can publish bundles, promote releases, configure rollout settings, and gate production deployment according to your release process.

Does React Native Stallion support GitHub Actions?

Yes. Stallion works with GitHub Actions using the Stallion CLI and CI tokens. You can publish OTA bundles from a workflow triggered by pushes, releases, or your own deployment gates. See the GitHub Actions example above for a complete workflow.

Can I use React Native Stallion with Bitrise?

Yes. Stallion can be integrated into Bitrise workflows using the Stallion CLI and CI tokens. Use the workflow to publish bundles and manage OTA releases as part of your existing deployment process.

Does Stallion support other CI/CD platforms?

Yes. Stallion can be integrated with platforms such as CircleCI, Jenkins, Expo, Appcircle, and Codemagic using the Stallion CLI and CI tokens. The same publish-and-release workflow can be adapted to your existing pipeline.

How do I secure CI tokens in my CI/CD pipeline?

Store your Stallion CI token as a secret in your CI/CD platform, such as GitHub Secrets or Bitrise Secrets. Never commit it to source control or expose it in build logs. Use the narrowest available scope and rotate or revoke the token if it is compromised.

What is the Stallion Testing Framework?

The Stallion Testing Framework lets authorized testers switch between available OTA releases directly inside a released React Native app using a built-in SDK modal. This lets teams validate OTA changes without rebuilding the native app or uploading a separate TestFlight or APK build for every JavaScript release.

Ship your next release in seconds.

Start automating your React Native OTA releases with Stallion. Free 10K MAU · No credit card · 5-minute setup

Found this guide useful? Add Stallion Tech to your preferred sources on Google.