Skip to content

shwetsolanki/react-native-bundle-size

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

Github Action for calculating the react native bundle size

Resources

Stars

Watchers

Forks

Packages

No packages published