Skip to content

Github action to check for new added packages size on bundlephobia

License

Notifications You must be signed in to change notification settings

ascential/check-my-bundlephobia

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: ascential/check-my-bundlephobia@master
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          strict: true
          threshold: 500

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

About

Github action to check for new added packages size on bundlephobia

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%