Skip to content

fix(release): handle root package tag separately - #5

Merged
drav0011 merged 1 commit into
mainfrom
fix/root-meta-release
Sep 20, 2026
Merged

drav0011 merged 1 commit into
mainfrom
fix/root-meta-release

Conversation

@drav0011

Copy link
Copy Markdown
Contributor

The npm packages published successfully, but Changesets Action v2 failed before pushing tags or creating releases because its package map excludes the workspace-root @bedrock-core/server package.

This reports only child workspaces through CHANGESETS_OUTPUT and adds a rerunnable step for the root meta-package tag and GitHub release. The root release uses the matching changelog entry and safely skips an existing tag or release.

Validation:

  • node --check for both release scripts
  • focused ESLint for both release scripts
  • workflow YAML parse
  • git diff --check
  • root release dry run

Copilot AI lite review requested due to automatic review settings September 20, 2026 15:17
@drav0011
drav0011 merged commit 4bb3fc4 into main Sep 20, 2026
1 check passed
@drav0011
drav0011 deleted the fix/root-meta-release branch September 20, 2026 15:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The release flow is functionally correct and rerunnable; only a non-blocking documentation inconsistency remains.

Review effort: Lite
Findings: 1 Low severity

Open (1)
What changed in this PR

This PR separates root-package tagging and GitHub release creation from Changesets Action while preserving child-workspace reporting.

Changes:

  • Excludes the root package from CHANGESETS_OUTPUT.
  • Adds an idempotent root tag/release script using changelog notes.
  • Runs root release handling after the Changesets publish action.
File Description
scripts/​tag-packages.mjs Reports only child workspace tags.
scripts/​release-root-package.mjs Creates the root tag and GitHub release safely.
.github/​workflows/​publish.yml Invokes root release handling with GH_TOKEN.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/tag-packages.mjs
Comment on lines +55 to +58
// Changesets Action's package map contains child workspaces only. The root
// meta package is pushed and released by release-root-package.mjs after the
// action has handled the child packages.
if (process.env.CHANGESETS_OUTPUT && workspace.location !== '.') {
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