| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- name: size report
- on:
- workflow_run:
- workflows: ['size data']
- types:
- - completed
- permissions:
- contents: read
- pull-requests: write
- issues: write
- env:
- PUPPETEER_SKIP_DOWNLOAD: 'true'
- jobs:
- size-report:
- runs-on: ubuntu-latest
- if: >
- github.event.workflow_run.event == 'pull_request' &&
- github.event.workflow_run.conclusion == 'success'
- steps:
- - uses: actions/checkout@v4
- - name: Install pnpm
- uses: pnpm/action-setup@v4.0.0
- - name: Install Node.js
- uses: actions/setup-node@v4
- with:
- node-version-file: '.node-version'
- cache: pnpm
- - name: Install dependencies
- run: pnpm install
- - name: Download Size Data
- uses: dawidd6/action-download-artifact@v4
- with:
- name: size-data
- run_id: ${{ github.event.workflow_run.id }}
- path: temp/size
- - name: Download Previous Size Data
- uses: dawidd6/action-download-artifact@v4
- with:
- branch: main
- workflow: size-data.yml
- event: push
- name: size-data
- path: temp/size-prev
- if_no_artifact_found: warn
- - name: Prepare report
- run: pnpm tsx scripts/size-report.ts > size-report.md
- - name: Create Comment
- uses: thollander/actions-comment-pull-request@v2.5.0
- with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- filePath: size-report.md
- pr_number: ${{ github.event.workflow_run.pull_requests[0].number }}
- comment_tag: VUE_CORE_SIZE
|