Provides build/release tasks that enable performing continuous delivery to the CodePush service from an automated VSTS build or release definition
CodePush is a cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices. It works by acting as a central repository that developers can publish certain updates to (e.g. JS, HTML, CSS and image changes), and that apps can query for updates from using our provided client SDKs for Cordova and React Native.
Visual Studio Team Services Extension for CodePush
This extension contains a set of deployment tasks which allow you to automate the release and promotion of app updates via CodePush from your CI environment. This can reduce the effort needed to keep your dev/alpha/beta/etc. deployments up-to-date, since you can simply push changes to the configured source control branches, and let your automated build take care of the rest. No need to manually release, promote or rollout from the CodePush CLI!
These tasks can be used with either VSTS or TFS 2015 Update 2 and are intended to work with any Cordova or React Native project. Additionally, the tasks can be paired nicely with the Cordova Command task and/or the React Native Bundle task, which allow you to easily "prepare" the platform-specific assets that can be subsequently released to CodePush.
Using the CodePush CLI, generate a new access key whose description indicates it will be used for VSTS CI builds (e.g. code-push access-key create "VSTS CI")
NOTE: If you provisioned your CodePush account from HockeyApp, you can use the API key that is displayed in the HockeyApp portal, and don't need to generate an additional key via the CodePush CLI.
Go to your Visual Studio Team Services or TFS project, click on the Build tab, and create a new build definition (the "+" icon) that is hooked up to your project's appropriate source repo
NOTE: If you already have a build definition setup for your app, you can feel free to re-use that. CodePush doesn't require a distinct build/release defintion in order to work.
Click Add build step... and select one of the following tasks from the Deploy category, depending on your app type and/or requirements:
CodePush - Release (Cordova) - Select this if you're releasing updates for a Cordova app. See the reference docs for details about how it works.
CodePush - Release - Select this if you're not releasing updates for a Cordova app or you want additional flexibility beyond what the platform-specific tasks provide you. See the reference docs for details about how it works.