Let's watch the bundle?
This commit is contained in:
parent
af437ae4c8
commit
f5faf51bad
19
.github/workflows/bundlewatch.yml
vendored
Normal file
19
.github/workflows/bundlewatch.yml
vendored
Normal 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
|
Loading…
Reference in a new issue