bundlewatch.yml 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Bundlewatch
  2. on:
  3. push:
  4. pull_request:
  5. env:
  6. FORCE_COLOR: 2
  7. NODE: 14
  8. jobs:
  9. bundlewatch:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Clone repository
  13. uses: actions/checkout@v2
  14. - name: Set up Node.js
  15. uses: actions/setup-node@v2
  16. with:
  17. node-version: "${{ env.NODE }}"
  18. - name: Set up npm cache
  19. uses: actions/cache@v2
  20. with:
  21. path: ~/.npm
  22. key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
  23. restore-keys: |
  24. ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
  25. - name: Install npm dependencies
  26. run: npm ci
  27. - name: Run dist
  28. run: npm run dist
  29. - name: Run bundlewatch
  30. run: npm run bundlewatch
  31. env:
  32. BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
  33. CI_BRANCH_BASE: main