NTP-7916 | React Native Version Bump (#1011)

Co-authored-by: varnit goyal <github.cicd@navi.com>
Co-authored-by: Varnit Goyal <varnit.goyal@navi.com>
This commit is contained in:
Mantri Ramkishor
2024-11-20 10:47:47 +05:30
committed by GitHub
parent 89c268f9ce
commit 690e235026
20 changed files with 1579 additions and 991 deletions

View File

@@ -43,7 +43,7 @@ on:
default: "3.2.1"
jobs:
generate:
runs-on: [ default ]
runs-on: [macos]
outputs:
package_version: ${{ github.event.inputs.version_name }}
build_number: ${{ github.event.inputs.version_code }}
@@ -55,10 +55,10 @@ jobs:
submodules: recursive
- name: update codepush key QA
if: (github.event.inputs.environment == 'QA' || inputs.environment == 'QA')
run: sed -i "s/pastekeyhere/${{ secrets.CODEPUSH_QA_KEY }}/" android/app/src/main/res/values/strings.xml && cat android/app/src/main/res/values/strings.xml
run: sed -i "" "s/pastekeyhere/${{ secrets.CODEPUSH_QA_KEY }}/" android/app/src/main/res/values/strings.xml && cat android/app/src/main/res/values/strings.xml
- name: update codepush key PROD
if: (github.event.inputs.environment == 'Prod' || inputs.environment == 'Prod')
run: sed -i "s/pastekeyhere/${{ secrets.CODEPUSH_PROD_KEY }}/" android/app/src/main/res/values/strings.xml && cat android/app/src/main/res/values/strings.xml
run: sed -i "" "s/pastekeyhere/${{ secrets.CODEPUSH_PROD_KEY }}/" android/app/src/main/res/values/strings.xml && cat android/app/src/main/res/values/strings.xml
- name: Generate keystore
if: (github.event.inputs.type == 'release' || inputs.type == 'release')
run: echo "${{ secrets.KEY_STORE }}" > keystore.asc && gpg -d --passphrase "${{ secrets.PASSPHARASE }}" --batch keystore.asc > android/app/my-upload-key.keystore
@@ -72,10 +72,10 @@ jobs:
run: yarn
- name: Override App Version Code
if: github.event_name == 'workflow_dispatch' && github.event.inputs.version_code != ''
run: sed -i 's/def VERSION_CODE = [0-9].*/def VERSION_CODE = ${{ github.event.inputs.version_code }}/g' android/app/build.gradle
run: sed -i "" 's/def VERSION_CODE = [0-9].*/def VERSION_CODE = ${{ github.event.inputs.version_code }}/g' android/app/build.gradle
- name: Override App Version Name
if: github.event_name == 'workflow_dispatch' && github.event.inputs.version_name != ''
run: sed -i 's/def VERSION_NAME = "[0-9].*"/def VERSION_NAME = "${{ github.event.inputs.version_name }}"/g' android/app/build.gradle
run: sed -i "" 's/def VERSION_NAME = "[0-9].*"/def VERSION_NAME = "${{ github.event.inputs.version_name }}"/g' android/app/build.gradle
- name: Log Build Metadata
run: |
echo "Commit SHA: ${{ github.sha }}"
@@ -168,7 +168,7 @@ jobs:
generate_source_map:
needs: generate
runs-on: [default]
runs-on: [macos]
outputs:
package_version: ${{ needs.generate.outputs.package_version }}
build_number: ${{ needs.generate.outputs.build_number }}
@@ -233,7 +233,7 @@ jobs:
upload_sourcemap_cybertron:
needs: generate_source_map
runs-on: [default]
runs-on: [macos]
if: success() && (github.event.inputs.environment == 'Prod')
steps:
- name: Download Source Map
@@ -267,7 +267,7 @@ jobs:
create_release_tag:
needs: generate_source_map
runs-on: [default]
runs-on: [macos]
if: success() && (github.event.inputs.environment == 'Prod') && (github.event.inputs.releaseType == 'HARD_RELEASE' || inputs.releaseType == 'HARD_RELEASE') # Only create source map for Prod releases and not for test builds
steps:
- name: Checkout