bundlewatch.yml 895 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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: 18
  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. - name: Install PNPM
  22. run: npm i -g pnpm
  23. - name: Set up Bundler
  24. uses: ruby/setup-ruby@v1
  25. with:
  26. ruby-version: 2.6
  27. bundler-cache: true
  28. - name: Install pnpm dependencies
  29. run: pnpm install --no-frozen-lockfile
  30. - name: Run build
  31. run: pnpm run build
  32. - name: Run bundlewatch
  33. run: pnpm run bundlewatch
  34. env:
  35. BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
  36. CI_BRANCH_BASE: dev