Create compressed-size.yml

This commit is contained in:
xrkffgg
2020-12-24 15:16:54 +08:00
committed by GitHub
parent e92345f030
commit 1d0bb25b58

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

@@ -0,0 +1,16 @@
name: Compressed Size
on: [pull_request_target]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: preactjs/compressed-size-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: "./dist/*.{js}"
build-script: "package"