| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- name: size data
- on:
- push:
- branches:
- - main
- - minor
- pull_request:
- branches:
- - main
- - minor
- permissions:
- contents: read
- env:
- PUPPETEER_SKIP_DOWNLOAD: 'true'
- jobs:
- upload:
- if: github.repository == 'vuejs/core'
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- - name: Install pnpm
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
- - name: Install Node.js
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- with:
- node-version-file: '.node-version'
- cache: pnpm
- - name: Install dependencies
- run: pnpm install
- - run: pnpm run size
- - name: Save PR number & base branch
- if: ${{github.event_name == 'pull_request'}}
- run: |
- echo ${{ github.event.number }} > ./temp/size/number.txt
- echo ${{ github.base_ref }} > ./temp/size/base.txt
- - name: Upload Size Data
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- with:
- name: size-data
- path: temp/size
|