chore(deps): update peerdependency vite to v8 [security] - abandoned #1178
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bundle Size Analysis | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| analyze-bundle-size: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 | |
| - name: Use Node.js 24.x | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.x | |
| registry-url: https://registry.npmjs.org/ | |
| cache: pnpm | |
| - name: Build base branch bundles | |
| run: | | |
| git checkout ${{ github.base_ref }} | |
| pnpm install | |
| pnpm build | |
| pnpm test:bundle-size | |
| pnpm test:vue-bundle-size | |
| cp bench/bundle/dist/client/client/minimal.mjs /tmp/base-client.mjs | |
| cp bench/bundle/dist/server/server/minimal.mjs /tmp/base-server.mjs | |
| cp bench/bundle/dist/vue-server/vue-server/minimal.mjs /tmp/base-vue-server.mjs | |
| cp bench/bundle/dist/vue-client/vue-client/minimal.mjs /tmp/base-vue-client.mjs | |
| git checkout - | |
| - name: Build PR bundles | |
| run: | | |
| pnpm install | |
| pnpm build | |
| pnpm test:bundle-size | |
| pnpm test:vue-bundle-size | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Run analyze script | |
| id: analyze | |
| run: | | |
| output=$(bun bench/bundle/analyze.ts /tmp/base-client.mjs /tmp/base-server.mjs /tmp/base-vue-client.mjs /tmp/base-vue-server.mjs) | |
| echo "$output" | |
| echo "result<<EOF" >> $GITHUB_OUTPUT | |
| echo "$output" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| - name: Post comment on PR | |
| uses: marocchino/sticky-pull-request-comment@70d2764d1a7d5d9560b100cbea0077fc8f633987 # v3 | |
| with: | |
| header: Bundle Size Analysis | |
| message: | | |
| ### Bundle Size Analysis | |
| ${{ steps.analyze.outputs.result }} |