From 997972ed29e9df617d40f785528eb04bfd5e140f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Tue, 16 Feb 2021 21:08:19 +0800 Subject: [PATCH] chore: Add compressed size action (#29337) --- .github/workflows/compressed-size.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/compressed-size.yml diff --git a/.github/workflows/compressed-size.yml b/.github/workflows/compressed-size.yml new file mode 100644 index 0000000000..b244807cb5 --- /dev/null +++ b/.github/workflows/compressed-size.yml @@ -0,0 +1,18 @@ +name: 📦 Compressed Size + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + env: + CI_JOB_NUMBER: 1 + + steps: + - uses: actions/checkout@v2 + - uses: preactjs/compressed-size-action@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + pattern: "./dist/**/*.min.{js,css}" + build-script: "dist:esbuild" \ No newline at end of file