bundlewatch.yml 798 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Bundlewatch
  2. on:
  3. push:
  4. branches-ignore:
  5. - "dependabot/**"
  6. pull_request:
  7. workflow_dispatch:
  8. env:
  9. FORCE_COLOR: 2
  10. NODE: 18
  11. permissions:
  12. contents: read
  13. jobs:
  14. bundlewatch:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Clone repository
  18. uses: actions/checkout@v4
  19. with:
  20. persist-credentials: false
  21. - name: Set up Node.js
  22. uses: actions/setup-node@v3
  23. with:
  24. node-version: "${{ env.NODE }}"
  25. cache: npm
  26. - name: Install npm dependencies
  27. run: npm ci
  28. - name: Run dist
  29. run: npm run compile
  30. - name: Run bundlewatch
  31. run: npm run bundlewatch
  32. env:
  33. BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
  34. CI_BRANCH_BASE: master