From f5faf51bad1e7bff4395e05f60e74aeca30397f7 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 26 Dec 2022 20:51:43 +0800 Subject: [PATCH] Let's watch the bundle? --- .github/workflows/bundlewatch.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/bundlewatch.yml diff --git a/.github/workflows/bundlewatch.yml b/.github/workflows/bundlewatch.yml new file mode 100644 index 00000000..bf064f85 --- /dev/null +++ b/.github/workflows/bundlewatch.yml @@ -0,0 +1,19 @@ +name: BundleWatch +on: + push: + branches: + - main + +jobs: + bundle: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: | + npm ci + npm run build + npx bundlewatch --max-size 100kb ./dist/**/*.js + env: + BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} + CI_REPO_OWNER: cheeaun + CI_REPO_NAME: phanpy