Skip to content

build(deps-dev): bump @vitejs/plugin-react from 6.0.2 to 6.0.3 #590

build(deps-dev): bump @vitejs/plugin-react from 6.0.2 to 6.0.3

build(deps-dev): bump @vitejs/plugin-react from 6.0.2 to 6.0.3 #590

Workflow file for this run

name: Bundle Size
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db
PAYLOAD_SECRET: ci-build-secret-not-real
NEXT_PUBLIC_SERVER_URL: http://localhost:3000
jobs:
analyze:
name: Analyze Bundle
runs-on: ubuntu-latest
timeout-minutes: 15
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Generate Payload types
run: pnpm payload generate:types
- name: Run database migrations
run: pnpm payload migrate
- name: Build and capture output
run: |
set -o pipefail
pnpm build 2>&1 | tee build-output.txt
- name: Report bundle size
if: always()
run: |
echo "## Bundle Size Report" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ -f build-output.txt ]; then
echo "### Route Sizes (from next build)" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
sed -n '/Route (app)/,/^$/p' build-output.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
fi
if [ -d .next/static ]; then
echo "### Client Bundle" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
du -sh .next/static/ >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
fi
echo "### Total Build Output" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
du -sh .next/ 2>/dev/null || echo "Build did not produce .next directory" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY