bundlewatch.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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: 20
  11. jobs:
  12. bundlewatch:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Clone repository
  16. uses: actions/checkout@v4
  17. - name: Cache turbo build setup
  18. uses: actions/cache@v4
  19. with:
  20. path: .turbo
  21. key: ${{ runner.os }}-turbo-${{ github.sha }}
  22. restore-keys: |
  23. ${{ runner.os }}-turbo-
  24. - name: Set up Node.js
  25. uses: actions/setup-node@v4
  26. with:
  27. node-version: "${{ env.NODE }}"
  28. - name: Install PNPM
  29. uses: pnpm/action-setup@v4
  30. - name: Set up Bundler
  31. uses: ruby/setup-ruby@v1
  32. with:
  33. ruby-version: 3.2
  34. bundler-cache: true
  35. - name: Install pnpm dependencies
  36. run: pnpm install --no-frozen-lockfile
  37. - name: Build
  38. run: pnpm run build
  39. - name: Run bundlewatch
  40. run: pnpm run bundlewatch
  41. env:
  42. BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
  43. CI_BRANCH_BASE: dev