size-data.yml 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: size data
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. - minor
  10. permissions:
  11. contents: read
  12. env:
  13. PUPPETEER_SKIP_DOWNLOAD: 'true'
  14. jobs:
  15. upload:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v4
  19. - name: Install pnpm
  20. uses: pnpm/action-setup@v4.0.0
  21. - name: Install Node.js
  22. uses: actions/setup-node@v4
  23. with:
  24. node-version-file: '.node-version'
  25. cache: pnpm
  26. - name: Install dependencies
  27. run: pnpm install
  28. - run: pnpm run size
  29. - name: Upload Size Data
  30. uses: actions/upload-artifact@v4
  31. with:
  32. name: size-data
  33. path: temp/size
  34. - name: Save PR number
  35. if: ${{github.event_name == 'pull_request'}}
  36. run: echo ${{ github.event.number }} > ./pr.txt
  37. - uses: actions/upload-artifact@v4
  38. if: ${{github.event_name == 'pull_request'}}
  39. with:
  40. name: pr-number
  41. path: pr.txt