TP-80790 | Source map action (#898)
Co-authored-by: Varnit Goyal <varnit.goyal@navi.com>
This commit is contained in:
37
.github/workflows/codePush.yml
vendored
37
.github/workflows/codePush.yml
vendored
@@ -61,9 +61,44 @@ jobs:
|
||||
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:
|
||||
generate_source_map:
|
||||
needs: generate
|
||||
runs-on: [default]
|
||||
if: success() && (github.event.inputs.environment == 'Prod') # Only create source map for Prod releases
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.MY_REPO_PAT }}
|
||||
submodules: recursive
|
||||
- name: Set Node.js 16.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16.x
|
||||
- name: Install yarn
|
||||
run: npm install --global yarn
|
||||
- name: Install dependency
|
||||
run: yarn
|
||||
- name: Generate Android Bundle and Source Map
|
||||
run: |
|
||||
npx react-native bundle \
|
||||
--dev false \
|
||||
--minify true \
|
||||
--platform android \
|
||||
--entry-file index.js \
|
||||
--reset-cache \
|
||||
--bundle-output index.android.bundle \
|
||||
--sourcemap-output index.android.bundle.map
|
||||
|
||||
- name: Upload Source Map
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: source-map
|
||||
path: index.android.bundle.map
|
||||
|
||||
create_release_tag:
|
||||
needs: generate_source_map
|
||||
runs-on: [default]
|
||||
if: success() && (github.event.inputs.environment == 'Prod') # Only create tag for Prod releases
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
Reference in New Issue
Block a user