Skip to content

Report CSS size stats in CI size summary#7821

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/update-ci-reports-on-sizes
Draft

Report CSS size stats in CI size summary#7821
Copilot wants to merge 5 commits intomainfrom
copilot/update-ci-reports-on-sizes

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 7, 2026

Updates the CI size report for @primer/react to include CSS imported by each entrypoint/export, plus cssstats metrics for quick review of CSS footprint.

Changelog

New

  • Adds CSS reporting columns to the GitHub Actions size summary:
    • CSS gzip size
    • CSS size
    • CSS rules
    • CSS selectors
    • CSS declarations
    • max selector specificity
  • Adds cssstats as a dev dependency for CI reporting.

Changed

  • Updates packages/react/script/get-export-sizes.cjs to collect CSS modules during Rollup analysis and associate included CSS with each reported entrypoint/export.

Removed

  • Nothing.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; CI/reporting-only change.

Testing & Reviewing

Review the generated Actions summary table for the new CSS columns and cssstats values.

Merge checklist

Copilot AI and others added 5 commits May 7, 2026 20:41
Agent-Logs-Url: https://github.com/primer/react/sessions/990af679-0e96-40f6-97b2-ce1f9bf2830f

Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Agent-Logs-Url: https://github.com/primer/react/sessions/990af679-0e96-40f6-97b2-ce1f9bf2830f

Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Agent-Logs-Url: https://github.com/primer/react/sessions/990af679-0e96-40f6-97b2-ce1f9bf2830f

Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Agent-Logs-Url: https://github.com/primer/react/sessions/990af679-0e96-40f6-97b2-ce1f9bf2830f

Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Agent-Logs-Url: https://github.com/primer/react/sessions/990af679-0e96-40f6-97b2-ce1f9bf2830f

Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 7, 2026

⚠️ No Changeset found

Latest commit: 0c56f9e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants