Automating CodePush Releases with DeployPulse Using Bitrise
Managing over-the-air (OTA) updates for React Native apps can be time-consuming, but DeployPulse and Bitrise make it seamless. In this guide, we'll walk through how to automate the release process of a CodePush update to DeployPulse using Bitrise.
π What This Workflow Does
This workflow:
- Automates CodePush updates to DeployPulse.
- Handles authentication securely using environment variables and secrets.
- Targets multiple environments (
production
andstaged rollouts
). - Ensures controlled rollout percentages.
π Bitrise Step for CodePush Deployment
1οΈβ£ Define the Bitrise Step
- git::https://github.com/elevationsoftwareio/bitrise-step-appcenter-codepush-release-react-native.git:
title: deploypulse-codepush
inputs:
- app_id: ExampleApp
- api_token: "$DEPLOYPULSE_KEY"
- deployment: Production
- platform: ios
- target_binary_version: 1.0.0
- description: Bitrise Test
- percentage: 25
2οΈβ£ Breakdown of Inputs
app_id
: Specifies the DeployPulse app. This is your app name in the DeployPulse dashboard.api_token
: Uses theDEPLOYPULSE_KEY
environment variable for authentication.deployment
: Defines the deployment track (Production).platform
: Targets iOS. You can also specifyandroid
.target_binary_version
: Set the compatibility with version 1.0.0. Adjust based on your workflow and app version.description
: Adds a release note (Bitrise Test
).percentage
: Deploys to 25% of users for a staged rollout. This can be adjusted as needed. Set to100
for full rollout or slowly do a phased rollout.
Source Code
The full source code for this guide is available on GitHub at elevationsoftwareio/bitrise-deploypulse-codepush.
Conclusion
This guide demonstrates how to automate CodePush deployments via Bitrise to DeployPulse, ensuring seamless, secure, and staged OTA updates.
π Need to learn more? Check out the rest of the quickstart guide DeployPulse Docs. π
Custom GitHub Action Available
If you prefer using GitHub Actions for CodePush deployments, you can leverage the DeployPulse GitHub Action