Skip to content

Commit

Permalink
deal with corrupted bundle in CI builds (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
namidan authored Sep 27, 2023
1 parent 90b4251 commit ad44d27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/app_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ jobs:
env:
BASIC_ANDROID_PROD_APP_PLATFORM_ID: '${{ secrets.ANDROID_PROD_APP_PLATFORM_ID }}'

- name: Manually create the bundle
run: |
mkdir -p android/app/src/main/assets/
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle
working-directory: source/examples/Basic

- name: Build Android App Bundle
run: |
./gradlew clean bundleProductionRelease
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/app_stg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ jobs:
yarn install
working-directory: source/examples/Basic

- name: Manually create the bundle
run: |
mkdir -p android/app/src/main/assets/
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle
working-directory: source/examples/Basic

- name: Build Android App Bundle
run: |
./gradlew clean bundleStagingRelease
Expand Down

0 comments on commit ad44d27

Please sign in to comment.