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

GitHub Action

bundlephobia-checker

v1.5.0

bundlephobia-checker

package

bundlephobia-checker

Check for new packages and their sizes

Installation

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

              

- name: bundlephobia-checker

uses: carlesnunez/[email protected]

Learn more about this action in carlesnunez/check-my-bundlephobia

Choose a version

Check my bundlephobia

Check my bundlephobia is a github action that will check for your code changes on a PR and will left a comment with the different sizes.

How to use it

name: "check my bundlephobia"
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
  bundlecheck:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: carlesnunez/[email protected]
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          strict: true
          threshold: 500
          ignore-dev-dependencies: true

Options

name description required type default
repo-token used by the action in order to perform PR reviews true
strict If true will reject the PR if threshold is exceded false Boolean false
threshold Max package size in bytes false String 500
ignore-dev-dependencies Ignore devDependencies so that to not be checked false Boolean false