mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 19:03:38 +02:00
chore(v2): add build size bot workflow Github CI workflow (#3744)
This commit is contained in:
parent
311be6e71a
commit
d05d703dad
1 changed files with 24 additions and 0 deletions
24
.github/workflows/build-size.yml
vendored
Normal file
24
.github/workflows/build-size.yml
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue