We’re introducing Revopush CircleCI Orb to help you build and release React Native bundles in your workflow. These steps let you automate your deployment process directly in your CI/CD pipeline. In this article, we’ll show you how to set them up and get started.
Before you start, make sure you have the following:
$
revopush access-key patch "CIRCLE_REVOPUSH_ACCESS_KEY" --ttl 128d
version: 2.1
orbs:
revopush: revopush/[email protected]
jobs:
publish-react-native-bundle:
docker:
- image: cimg/node:current
steps:
- checkout
- revopush/install
- run: npm ci
- run:
command: revopush release-react ios_app ios -d Staging
name: Release iOS App
workflows:
main:
jobs:
- publish-react-native-bundle
Detecting ios app version:
Using the target binary version value "1.0" from "ios/guineapig.xcodeproj/project.pbxproj".
Running "react-native bundle" command:
node node_modules/react-native/cli.js bundle --assets-dest /tmp/CodePush --bundle-output /tmp/CodePush/main.jsbundle --dev false --entry-file index.js --platform ios
Welcome to Metro v0.81.1
Fast - Scalable - Integrated
Writing bundle output to: /tmp/CodePush/main.jsbundle
Done writing bundle output
Copying 1 asset files
Done copying assets
private key was not provided
Releasing update contents to CodePush:
Upload progress:[] 100% 0.0s
Successfully released an update containing the "/tmp/CodePush" directory to the "Staging" deployment of the "ios_app" app.
For any questions, please contact our support team. Give it a try and share your thoughts with us!