build: add compressed-size github action (#9677)

* build: add compressed-size github action

* fix: invalid with

* fix: add GITHUB_TOKEN
This commit is contained in:
neverland 2021-10-15 10:06:26 +08:00 committed by GitHub
parent 6799189f57
commit d4fe6cd44e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
.github/workflows/compressed-size.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Compressed Size
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: preactjs/compressed-size-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: './packages/vant/lib/{vant.min.js,index.css}'