From 189e113fdd5982bde450a9aefb030c6e4bc73b50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=93=E5=BA=B7?= Date: Wed, 22 Nov 2023 15:33:02 +0800 Subject: [PATCH] add github size action --- .github/workflows/bundleSize.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/bundleSize.yaml diff --git a/.github/workflows/bundleSize.yaml b/.github/workflows/bundleSize.yaml new file mode 100644 index 000000000..afc3df5e1 --- /dev/null +++ b/.github/workflows/bundleSize.yaml @@ -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: + build-script: "build:odc" + pattern: "./dist/renderer/*.{js,css,html}" \ No newline at end of file