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