Skip to content

fix(changeset): retarget compare-gate changeset at @anarchitecture/ghost#85

Merged
gnahCnayR merged 1 commit into
block:mainfrom
gnahCnayR:rchang/fix-changeset-package-name
May 19, 2026
Merged

fix(changeset): retarget compare-gate changeset at @anarchitecture/ghost#85
gnahCnayR merged 1 commit into
block:mainfrom
gnahCnayR:rchang/fix-changeset-package-name

Conversation

@gnahCnayR
Copy link
Copy Markdown
Collaborator

What

Retargets .changeset/add-compare-gate-mode.md from ghost-drift (the pre-unification workspace package name) to @anarchitecture/ghost (the unified package on main).

Why

The Release workflow that fired on the #78 merge commit failed in the Create Release PR or publish step:

🦋  error Error: Found changeset add-compare-gate-mode for package ghost-drift which is not in the workspace

Failing run: https://github.com/block/ghost/actions/runs/26118777942/job/76814916209

The changeset for PR #78 was written against the pre-unification package name ghost-drift. When I rebased #78 onto main after the unified-package refactor landed, I updated the code (@ghost/core#ghost-core, file paths under packages/ghost/, regenerated the cli-manifest) but missed updating the changeset frontmatter. The error only surfaces post-merge because the Release workflow only runs on main.

Fix

  • Update the changeset's package key from ghost-drift to @anarchitecture/ghost
  • Update the prose body from ghost-drift compare to ghost compare to match the unified CLI surface

Verification

$ pnpm changeset status
🦋  info Packages to be bumped at minor:
🦋  - @anarchitecture/ghost
``"

Once this lands, the Release workflow should produce a normal Version Packages PR for `@anarchitecture/ghost` at minor (which is the intended `--gate`-mode-shipped version bump).

PR block#78's changeset still references the pre-unification package name
ghost-drift, which no longer exists as a workspace package on main.
The Release workflow on the block#78 merge commit failed in 'changeset
version' with: 'Found changeset add-compare-gate-mode for package
ghost-drift which is not in the workspace'.

Retarget at @anarchitecture/ghost (the unified package that ghost-drift
folded into) so the next Release workflow run can produce a Version
Packages PR. Verified locally with 'pnpm changeset status' — bumps
@anarchitecture/ghost minor as intended.

Also fix the changeset body to read 'ghost compare' instead of
'ghost-drift compare' to match the unified CLI surface.

Refs https://github.com/block/ghost/actions/runs/26118777942/job/76814916209

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019e2789-8b40-75ef-a9d0-adac2b13d89e
@gnahCnayR gnahCnayR requested a review from nahiyankhan as a code owner May 19, 2026 19:33
@gnahCnayR gnahCnayR merged commit 99fd90f into block:main May 19, 2026
6 checks passed
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