Skip to content

BundleMon

Actions
A free open-source tool that helps you to monitor your bundle size on every commit and alerts you on changes
v1.3.0
Latest
Star (2)
BundleMon logo

BundleMon GitHub Action

Easily use BundleMon to monitor your bundle size on every commit from GitHub Actions

Inputs

Name Required Default Description
bundlemon-args - Optional args for BundleMon cli. Example: --subProject "some-name"
bundlemon-version - Latest version BundleMon cli version
working-directory - The working directory
fail-on-error - true Should fail on error

Usage

BundleMon config must be present to run this action, See BundleMon setup for more info.

name: Build

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

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Install dependencies
        run: yarn

      - name: Build
        run: yarn build

      - name: BundleMon
        uses: lironer/bundlemon-action@v1

Example run BundleMon on multiple projects

name: Build

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

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Install dependencies
        run: yarn

      - name: Build
        run: yarn build

      - name: BundleMon Project A
        uses: lironer/bundlemon-action@v1
        with:
          bundlemon-args: --config project-a-config.json --subProject "project-a"

      - name: BundleMon Project B
        uses: lironer/bundlemon-action@v1
        with:
          bundlemon-args: --config project-b-config.json --subProject "project-b"

BundleMon 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

A free open-source tool that helps you to monitor your bundle size on every commit and alerts you on changes
v1.3.0
Latest

BundleMon 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.