bundlewatch.yml 831 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Bundlewatch
  2. on:
  3. pull_request: null
  4. push:
  5. branches:
  6. - main
  7. - dev
  8. env:
  9. FORCE_COLOR: 2
  10. NODE: 16
  11. jobs:
  12. bundlewatch:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Clone repository
  16. uses: actions/checkout@v3
  17. - name: Set up Node.js
  18. uses: actions/setup-node@v3
  19. with:
  20. node-version: "${{ env.NODE }}"
  21. cache: npm
  22. - name: Set up Bundler
  23. uses: ruby/setup-ruby@v1
  24. with:
  25. ruby-version: 2.6
  26. bundler-cache: true
  27. - name: Install npm dependencies
  28. run: npm install
  29. - name: Run build
  30. run: npm run build
  31. - name: Run bundlewatch
  32. run: npm run bundlewatch
  33. env:
  34. BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
  35. CI_BRANCH_BASE: dev