Skip to content

react-native-bundle-size

Actions
Github action to add React Native bundle size as status check
v1
Latest
Star (4)

Tags

 (1)

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

react-native-bundle-size is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github action to add React Native bundle size as status check
v1
Latest

Tags

 (1)

react-native-bundle-size is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.