Let's watch the bundle?

This commit is contained in:
Lim Chee Aun 2022-12-26 20:51:43 +08:00
parent af437ae4c8
commit f5faf51bad

19
.github/workflows/bundlewatch.yml vendored Normal file
View file

@ -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