Skip to content
bar-chart-2

GitHub Action

Size Branch Compare

v0.0.1 Latest version

Size Branch Compare

bar-chart-2

Size Branch Compare

Compare branch size of the built assets

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Size Branch Compare

uses: numero33/size-branch-compare@v0.0.1

Learn more about this action in numero33/size-branch-compare

Choose a version

Download workflow artifact GitHub Action

Compare size changes of your bundle on Pull Requests.

Usage

name: SizeCompare CI

on:
  push:
    branches:
      - main
  pull_request:
    types: [opened, reopened, synchronize, ready_for_review]
  workflow_dispatch:

jobs:
  size-compare:
    runs-on: ubuntu-latest
    steps:
      - name: 🛎️ Checkout
        uses: actions/checkout@v3

      # Add here your setup, installation, and build steps

      - name: 🚛 Size compare
        uses: numero33/size-branch-compare
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          files: |
            dist/**.js
            !dist/**.js.map