This GitHub Action allows you to keep a check on the React Native Bundle Size for both iOS and Android apps.
The following shows how to publish the react native bundle size on the PR request as commit status
name: "react-native-pull-request"
on: [pull-request]
jobs:
test_something:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shwetsolanki/react-native-bundle-size@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ios-entry-file: 'index.ios.js'
android-entry-file: 'index.android.js'
include-assets: 'true'
include-source-maps: 'true'
Required Your GITHUB_TOKEN
Your entry JS file for iOS
Default index.js
Your entry JS file for Android
Default index.js
Adds assets to the result bundle
Default true
Adds source maps to the result bundle
Default true
- Adds comparison with bundle size from last Appstore / Playstore released build
- Adds color code formatting for better readability, if possible