bundlewatch.yml 938 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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@v4
  17. - name: Set up Node.js
  18. uses: actions/setup-node@v4
  19. with:
  20. node-version: "${{ env.NODE }}"
  21. - name: Install PNPM
  22. uses: pnpm/action-setup@v3
  23. with:
  24. version: 8
  25. - name: Set up Bundler
  26. uses: ruby/setup-ruby@v1
  27. with:
  28. ruby-version: 3.2
  29. bundler-cache: true
  30. - name: Install pnpm dependencies
  31. run: pnpm install --no-frozen-lockfile
  32. - name: Run build
  33. run: pnpm run build
  34. - name: Run bundlewatch
  35. run: pnpm run bundlewatch
  36. env:
  37. BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
  38. CI_BRANCH_BASE: dev