Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.18 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.18 KB

GitHub Actions: react-native-bundle-size

This GitHub Action allows you to keep a check on the React Native Bundle Size for both iOS and Android apps.

Usage

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'

Inputs

token

Required Your GITHUB_TOKEN

ios-entry-file

Your entry JS file for iOS

Default index.js

android-entry-file

Your entry JS file for Android

Default index.js

include-assets

Adds assets to the result bundle

Default true

include-source-maps

Adds source maps to the result bundle

Default true

RoadMap

  • Adds comparison with bundle size from last Appstore / Playstore released build
  • Adds color code formatting for better readability, if possible