Add bundlewatch (#7940)

* Add bundlewatch
This commit is contained in:
Jukka Kurkela
2020-10-21 20:14:52 +03:00
committed by GitHub
parent 6a72bcbeca
commit fc5bbd7a0b
3 changed files with 297 additions and 1 deletions

25
.github/workflows/bundlewatch.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: "Bundlewatch Github Action"
on:
pull_request:
types: [synchronize, opened, reopened]
push:
branches:
- master
jobs:
bundlewatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
- name: Build
run: |
npm ci
npm run build
- name: Bundlewatch
run: npx bundlewatch
env:
CI_BRANCH_BASE: master
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}