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:

  1. Automates CodePush updates to DeployPulse.
  2. Handles authentication securely using environment variables and secrets.
  3. Targets multiple environments (production and staged rollouts).
  4. 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 the DEPLOYPULSE_KEY environment variable for authentication.
  • deployment: Defines the deployment track (Production).
  • platform: Targets iOS. You can also specify android.
  • 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 to 100 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