-
Notifications
You must be signed in to change notification settings - Fork 5
Add CI workflow to auto-update rolldown stats on main branch changes #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… setup Co-authored-by: Boshen <[email protected]>
Co-authored-by: Boshen <[email protected]>
…tats Co-authored-by: Boshen <[email protected]>
| name: Update Rolldown Stats | ||
|
|
||
| on: | ||
| pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot change to change on main branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the trigger to push on main branch instead of pull_request. The workflow will now run when changes are pushed to the main branch. (63469e9)
| - name: Commit and push changes | ||
| if: steps.git-check.outputs.changes == 'true' | ||
| run: | | ||
| git config --local user.email "[email protected]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot replace email to my email [email protected]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced email with [email protected] in the git config. (63469e9)
| if: steps.git-check.outputs.changes == 'true' | ||
| run: | | ||
| git config --local user.email "[email protected]" | ||
| git config --local user.name "GitHub Action" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot replace with my name Boshen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced username with "Boshen" in the git config. (63469e9)
Co-authored-by: Boshen <[email protected]>
This PR adds a new GitHub Actions workflow that automatically updates rolldown build statistics whenever changes are pushed to the main branch that modify the dashboard code.
What it does
The new
.github/workflows/update-rolldown-stats.ymlworkflow:apps/dashboard/**pnpm rolldown:statscommandWhy this is needed
The dashboard directly imports and visualizes rolldown performance data from
rolldown-version-stats.json:When dashboard code changes are merged to main, the build statistics may also change (different bundle sizes, build times, etc.), so the stats need to be automatically updated to keep the visualizations accurate.
Implementation details
The workflow follows existing CI patterns and includes:
contents: write) to commit back to the main branchrolldown-version-stats.jsonactually changesThe
pnpm rolldown:statscommand analyzes build performance across multiple rolldown versions, generating fresh statistics that include timestamps, build times, bundle sizes, and file breakdowns.Fixes #26.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.