size-data.yml 1014 B

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