TP-39914 | fix
This commit is contained in:
42
.github/workflows/codePush.yml
vendored
42
.github/workflows/codePush.yml
vendored
@@ -46,25 +46,25 @@ jobs:
|
||||
echo "Set version to $VERSION"
|
||||
echo "buildNumber=$BUILD_NUMBER" >> $GITHUB_OUTPUT
|
||||
echo "Set buildNumber to $BUILD_NUMBER"
|
||||
# - name: Install yarn
|
||||
# run: npm install --global yarn
|
||||
# - name: Install appcenter cli
|
||||
# run: npm install -g appcenter-cli
|
||||
# - name: Install dependency
|
||||
# run: yarn
|
||||
# - name: AppCenter login
|
||||
# run: appcenter login --token ${{ secrets.APP_CENTER_LOGIN_TOKEN }}
|
||||
# - name: CodePush QA
|
||||
# if: ((github.event.inputs.environment == 'QA' || inputs.environment == 'QA'))
|
||||
# run: yarn move:qa && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Staging -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"
|
||||
# - name: CodePush Prod
|
||||
# if: ((github.event.inputs.environment == 'Prod' || inputs.environment == 'Prod'))
|
||||
# run: yarn move:prod && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Production -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"
|
||||
- name: Install yarn
|
||||
run: npm install --global yarn
|
||||
- name: Install appcenter cli
|
||||
run: npm install -g appcenter-cli
|
||||
- name: Install dependency
|
||||
run: yarn
|
||||
- name: AppCenter login
|
||||
run: appcenter login --token ${{ secrets.APP_CENTER_LOGIN_TOKEN }}
|
||||
- name: CodePush QA
|
||||
if: ((github.event.inputs.environment == 'QA' || inputs.environment == 'QA'))
|
||||
run: yarn move:qa && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Staging -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"
|
||||
- name: CodePush Prod
|
||||
if: ((github.event.inputs.environment == 'Prod' || inputs.environment == 'Prod'))
|
||||
run: yarn move:prod && appcenter codepush release-react -a nfa-navi.com/nfa-app -d Production -t "${{github.event.inputs.target_versions}}" --description "${{github.event.inputs.description}}"
|
||||
|
||||
create_release_tag:
|
||||
needs: generate
|
||||
runs-on: [default]
|
||||
if: success() && (github.event.inputs.environment == 'QA') # Only create tag for Prod releases, have put QA for testing
|
||||
if: success() && (github.event.inputs.environment == 'Prod') # Only create tag for Prod releases
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -72,18 +72,6 @@ jobs:
|
||||
token: ${{ secrets.MY_REPO_PAT }}
|
||||
submodules: recursive
|
||||
persist-credentials: true
|
||||
# - name: Create Release
|
||||
# id: create_release
|
||||
# uses: actions/create-release@latest
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.MY_REPO_PAT }} # This token is provided by Actions, you do not need to create your own token
|
||||
# with:
|
||||
# tag_name: ${{ needs.generate.outputs.package_version }}
|
||||
# release_name: ${{ needs.generate.outputs.package_version }} (build ${{ needs.generate.outputs.build_number }}) code push
|
||||
# body: ""
|
||||
# draft: false
|
||||
# prerelease: false
|
||||
|
||||
- name: Check if tag exists
|
||||
id: check_tag
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user