CodePush made by Microsoft that enables React Native developers to deploy mobile app updates directly to their users’ devices. It use AppCenter to manage.
-
Install code-push CLI
npm install -g code-push-cli
-
Login with code-push
code-push login
-
Check project depolyment key (This step should be already configured)
code-push deployment ls <project_name> -k
If the project don't have deloyment key, it can bee added by following command
code-push deployment add <project_name> -d
-
Bundle local js and upload to AppCenter
To Staging env
code-push release-react <project_name> [ios|android] -m
Or you can use this shorter command
yarn codepush:[ios|android]:releaseTo Production env
code-push release-react <project_name> [ios|android] -m -d Production
Or you can use this shorter command
yarn codepush:[ios|android]:release:production -
Find the release package in AppCenter
The default behaviour will upload it in Staging env
-
Move staging to production

