Lesson 4 of 19Article16 min
Best Flow for React Native CI/CD
The best RN CI/CD flow balances speed on pull requests with thoroughness before store release. Fast feedback keeps developers unblocked; staged gates prevent bad binaries reaching users.
End-to-end pipeline flow
The best RN CI/CD flow balances speed on pull requests with thoroughness before store release. Fast feedback keeps developers unblocked; staged gates prevent bad binaries reaching users.
Below is the complete flow from local commit to production — study this diagram before configuring any tool.
Master CI/CD pipeline flowchart
Stage-by-stage breakdown
- Local: Husky runs lint + unit tests on every commit — catches 60% of issues before CI.
- PR: GitHub Actions runs typecheck, Jest, Android release build (cached deps). Optional iOS sim build on macOS runner.
- Develop merge: Fastlane uploads to Play Internal + TestFlight; Firebase App Distribution for QA outside store.
- Main merge: SEMVER bump, git tag, signed release build, changelog generated from commits.
- Notification: Discord/Slack webhook with version, branch, commit SHA, and artifact links.
- Production: manual promotion in Play Console (staged rollout 5% → 20% → 100%) and App Store Connect.
Pipeline timing targets
- PR pipeline: under 15 minutes (lint + test + Android build).
- Staging deploy after develop merge: under 45 minutes (includes signing).
- Full release pipeline: under 90 minutes (both platforms + store processing wait).
- Nightly E2E: 30–60 minutes depending on test count and Genymotion instance size.
Golden rule: never skip staging. A 30-minute staging test saves a 48-hour store rollback and user trust recovery.