Repository navigation
fix(release): disable changesets auto-formatting - #6163
Merged
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why is this change needed?
Unblocks the
📦 Releaseworkflow (release.yml) onmainand release PR #6110, which have been failing duringpnpm changeset:versionsince #6142 upgraded@changesets/clito3.1.0. No separate issue was filed; this is a direct unblock forrelease.yml/ #6110.What is the current behavior?
@changesets/cli@3.1.0pulls in@changesets/format@0.1.3, which auto-detectsbiome.jsonand runspnpm exec @biomejs/biome format --write --no-errors-on-unmatched .../CHANGELOG.md .... That command exits1because Biome's binary name isbiome, not@biomejs/biome, causingpnpm changeset:versionto crash inrelease.yml.What is the new behavior?
Changesets' built-in auto-formatting is disabled via
"format": false(with$schemaupdated to@changesets/config@4.1.0/schema.jsonwhereformatis defined).pnpm changeset:versionsucceeds and continues to runpnpm biome format --fiximmediately afterward as configured in the rootchangeset:versionscript.What is the intended behavior or invariant?
Formatting during release versioning remains owned solely by the root
changeset:versionscript (pnpm biome format --fix), which respectsbiome.json(including itsCHANGELOG.mdexclusion), rather than@changesets/formatauto-detecting and invoking an invalid binary name.Does this PR introduce a breaking change?
No.
Impact assessment:
mainfree of extra pending changesets)release.yml/ 🤖 Bip Bop - Fusion Framework Release #6110Review guidance:
"format": falseand the@changesets/config@4.1.0/schema.jsonschema URL match the installed@changesets/config@4.1.0.Additional context
Local validation:
pnpm changeset:version— passed (exited0,Formatted 3039 files in 138ms. No fixes applied.); generated changelog/version/lockfile changes were reverted afterward so only.changeset/config.jsonis committed.pnpm exec biome check .changeset/config.json— passed (Checked 1 file in 1875ms. No fixes applied.).Related issues
Ref: #6110, #6142
Checklist