chore(v2): add build size bot workflow Github CI workflow (#3744)

This commit is contained in:
Jainam Chirag Shah 2020-11-16 20:02:04 +05:30 committed by GitHub
parent 311be6e71a
commit d05d703dad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
.github/workflows/build-size.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Build Size
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: preactjs/compressed-size-action@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
pattern: '{website/build/main*js,website/build/styles*css,website/build/index.html,website/build/blog/**/introducing-docusaurus/*,website/build/docs/introduction/index.html}'
strip-hash: '\.([^;]\w{7})\.'
minimum-change-threshold: 100