diff --git a/.github/workflows/codePush.yml b/.github/workflows/codePush.yml index e37952ae..2d7934ae 100644 --- a/.github/workflows/codePush.yml +++ b/.github/workflows/codePush.yml @@ -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: | diff --git a/package.json b/package.json index 47a015cc..cb789ecb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "AV_APP", - "version": "2.8.4", - "buildNumber": "133", + "version": "2.8.3", + "buildNumber": "132", "private": true, "scripts": { "android:dev": "yarn move:dev && react-native run-android",