Skip to content

feat: consolidate per-package changelogs into root CHANGELOG#316

Open
burczu wants to merge 1 commit intocallstack:mainfrom
burczu:feat/automate-release-creation
Open

feat: consolidate per-package changelogs into root CHANGELOG#316
burczu wants to merge 1 commit intocallstack:mainfrom
burczu:feat/automate-release-creation

Conversation

@burczu
Copy link
Copy Markdown

@burczu burczu commented May 8, 2026

Summary

  • Adds scripts/consolidate-changelog.ts, run as part of ci:version, which aggregates the latest release entries from each packages/*/CHANGELOG.md into a single root CHANGELOG.md.
  • Deduplicates entries across packages by PR number (falling back to commit hash, then raw text) and drops Updated dependencies noise.
  • Idempotent: if the root CHANGELOG already contains the target version, the script is a no-op. New version blocks are spliced in above existing entries so the newest release stays on top.

The script is invoked automatically by the changesets/action release workflow, so the consolidated root CHANGELOG.md is committed and pushed as part of the auto-generated chore(release): version packages PR — no manual step required.

Test plan

  • Trigger a dry run of yarn ci:version locally with pending changesets and verify root CHANGELOG.md is created/updated correctly.
  • Verify idempotency by running yarn ci:version twice and confirming no duplicate version block is added.
  • Confirm Updated dependencies lines are stripped and PRs are not duplicated across packages.
  • Confirm the next chore(release): version packages PR opened by changesets/action includes the root CHANGELOG.md change.

Adds a script run as part of `ci:version` that aggregates the latest
release entries from each package's CHANGELOG into a single root
CHANGELOG, deduplicating by PR/commit and dropping `Updated dependencies`
noise.
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.

1 participant