Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
activity

GitHub Action

BundleMon

v1.0.0

BundleMon

activity

BundleMon

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

Installation

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

              

- name: BundleMon

uses: LironEr/bundlemon-action@v1.0.0

Learn more about this action in LironEr/bundlemon-action

Choose a version

BundleMon logo

BundleMon GitHub Action

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

Usage

name: Build

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

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

      - name: Install dependencies
        run: yarn

      - name: Build
        run: yarn build

      - name: BundleMon
        uses: lironer/bundlemon@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@v3
      - name: Setup Node
        uses: actions/setup-node@v3
        with:
          node-version: '20'

      - name: Install dependencies
        run: yarn

      - name: Build
        run: yarn build

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

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