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 (
productionandstaged rollouts). - Ensures controlled rollout percentages.
Bitrise Step for CodePush Deployment
Define the Bitrise Step
- git::https://github.com/deploypulseio/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
Breakdown of Inputs
app_id: Specifies the DeployPulse app. This is your app name in the DeployPulse dashboard.api_token: Uses theDEPLOYPULSE_KEYenvironment 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. Omitting this field defaults to 100% (full rollout).
Source Code
The full source code for this guide is available on GitHub at deploypulseio/bitrise-deploypulse-codepush.
Code Signing
To sign releases so devices can verify bundle integrity before applying an update, pass the --private-key flag in your Script step or via the Bitrise Step's extra_args input. See the Code Signing guide for key generation and setup instructions.
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 at DeployPulse Docs.
