This action promotes latest CodePush label from an ENV to another.
Please note you need to ncc build index.js
in order to compile your changes.
Check example below for expected env
variables.
A boolean indicating if the version is mandatory or not. Default "false"
.
A string indicating the percentage of the rollout. Default "100"
.
A string indicating the "from"
CodePush env, i.e. "DEV"
A string indicating the "to"
CodePush env, i.e. "PROD"
A boolean indicating if a release should be created, first draft will be used if available
The tag of the release
The name of the release
The url of the release
uses: actions/cp-promote-action@v1.0
with:
mandatory: 'false'
rollout: '100'
from: 'STAG'
to: 'PROD'
iOSAppName: 'PhorestGo-iOS'
androidAppName: 'PhorestGo-Android'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPCENTER_TOKEN: ${{ secrets.APPCENTER_TOKEN }}
IOS_APP_NAME: 'ios_codepush_app_name'
ANDROID_APP_NAME: 'android_codepush_app_name'