Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions .github/workflows/update-rolldown-stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Update Rolldown Stats

on:
pull_request:
Copy link
Member

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

Copy link
Contributor Author

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)

types: [opened, synchronize]
paths:
- 'apps/dashboard/**'

permissions:
contents: write
pull-requests: read

jobs:
update-stats:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run rolldown stats collection
run: pnpm rolldown:stats

- name: Check for changes
id: git-check
run: |
if git diff --exit-code rolldown-version-stats.json; then
echo "No changes detected in rolldown-version-stats.json"
echo "changes=false" >> $GITHUB_OUTPUT
else
echo "Changes detected in rolldown-version-stats.json"
echo "changes=true" >> $GITHUB_OUTPUT
fi

- name: Commit and push changes
if: steps.git-check.outputs.changes == 'true'
run: |
git config --local user.email "[email protected]"
Copy link
Member

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]

Copy link
Contributor Author

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)

git config --local user.name "GitHub Action"
Copy link
Member

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

Copy link
Contributor Author

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)

git add rolldown-version-stats.json
git commit -m "chore: update rolldown version stats"
git push origin HEAD:${{ github.head_ref }}

- name: No changes to commit
if: steps.git-check.outputs.changes != 'true'
run: echo "No changes were detected in rolldown-version-stats.json, skipping commit."
3 changes: 3 additions & 0 deletions apps/dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ pnpm lint

To customize the configuration, edit `.oxlintrc.json`. Oxlint supports most ESLint configuration options.

## Rolldown Stats Integration

This dashboard displays build statistics from different rolldown versions, automatically updated via CI when changes are made to the dashboard code.

62 changes: 31 additions & 31 deletions rolldown-version-stats.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[
{
"version": "7.1.0",
"timestamp": "2025-08-25T04:10:30.355Z",
"timestamp": "2025-08-25T06:50:59.905Z",
"files": [
{
"path": "assets/index-DD-rq4eS.css",
"size": 2812,
"type": "css"
},
{
"path": "assets/index-xJMNECRy.js",
"size": 564642,
"path": "assets/index-ZsBW98Qd.js",
"size": 566655,
"type": "js"
},
{
Expand All @@ -24,24 +24,24 @@
"type": "other"
}
],
"totalSize": 569457,
"totalSize": 571470,
"totalGzipSize": 0,
"buildTime": 1741
"buildTime": 2892
},
{
"version": "7.1.1",
"timestamp": "2025-08-25T04:10:33.181Z",
"timestamp": "2025-08-25T06:51:04.804Z",
"files": [
{
"path": "assets/index-9qxQbFsd.js",
"size": 566643,
"type": "js"
},
{
"path": "assets/index-DD-rq4eS.css",
"size": 2812,
"type": "css"
},
{
"path": "assets/index-xMD4_U6M.js",
"size": 564629,
"type": "js"
},
{
"path": "index.html",
"size": 506,
Expand All @@ -53,24 +53,24 @@
"type": "other"
}
],
"totalSize": 569444,
"totalSize": 571458,
"totalGzipSize": 0,
"buildTime": 1511
"buildTime": 2912
},
{
"version": "7.1.2",
"timestamp": "2025-08-25T04:10:36.031Z",
"timestamp": "2025-08-25T06:51:09.378Z",
"files": [
{
"path": "assets/index-9qxQbFsd.js",
"size": 566643,
"type": "js"
},
{
"path": "assets/index-DD-rq4eS.css",
"size": 2812,
"type": "css"
},
{
"path": "assets/index-xMD4_U6M.js",
"size": 564629,
"type": "js"
},
{
"path": "index.html",
"size": 506,
Expand All @@ -82,17 +82,17 @@
"type": "other"
}
],
"totalSize": 569444,
"totalSize": 571458,
"totalGzipSize": 0,
"buildTime": 1464
"buildTime": 2914
},
{
"version": "7.1.3",
"timestamp": "2025-08-25T04:11:10.423Z",
"timestamp": "2025-08-25T06:51:14.420Z",
"files": [
{
"path": "assets/index-C_guGHi2.js",
"size": 563794,
"path": "assets/index-CdKpvYeS.js",
"size": 565809,
"type": "js"
},
{
Expand All @@ -111,17 +111,17 @@
"type": "other"
}
],
"totalSize": 568609,
"totalSize": 570624,
"totalGzipSize": 0,
"buildTime": 1634
"buildTime": 3266
},
{
"version": "7.1.4",
"timestamp": "2025-08-25T04:11:13.184Z",
"timestamp": "2025-08-25T06:51:18.910Z",
"files": [
{
"path": "assets/index-C_guGHi2.js",
"size": 563794,
"path": "assets/index-CdKpvYeS.js",
"size": 565809,
"type": "js"
},
{
Expand All @@ -140,8 +140,8 @@
"type": "other"
}
],
"totalSize": 568609,
"totalSize": 570624,
"totalGzipSize": 0,
"buildTime": 1467
"buildTime": 2886
}
]
Loading