Skip to content

fix(ci): disable changesets formatter in version step - #1535

Merged
dannyhw merged 1 commit into
mainfrom
fix/changesets-format
Nov 30, 2026
Merged

dannyhw merged 1 commit into
mainfrom
fix/changesets-format

Conversation

@dannyhw

@dannyhw dannyhw commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The Release run on main after #1534 failed in changeset version (run):

Error: The command `pnpm exec @biomejs/biome format --write --no-errors-on-unmatched …/CHANGELOG.md …` exited with a non-zero status (254)

@changesets/cli 3.1.0 (@changesets/apply-release-plan 8.2.0) now auto-detects Biome from biome.jsonc and formats the generated CHANGELOGs through package-manager-detector's execute-local command. It passes the package name @biomejs/biome, not the command name biome. npx resolves package names, but pnpm exec only looks in node_modules/.bin, so pnpm fails with Command "@biomejs/biome" not found and exit code 254. 3.0.3 left Biome out of auto-detection. Earlier release runs didn't hit this because there were no pending changesets.

Upstream: reported in changesets/format#56, fix open in changesets/format#57. @changesets/format 0.1.3 is still the latest release. Once a fixed version ships, "format": false can be removed.

This sets "format": false in .changeset/config.json and bumps its $schema to @changesets/config@4.1.0, which documents the option. That matches what 3.0.3 actually did here: no formatter was detected, so CHANGELOGs were never formatted. The version-packages script still runs pnpm lint (biome check --write) afterwards. Biome 2.5.6 doesn't format Markdown; a follow-up PR upgrades Biome to 2.6, so that step will format CHANGELOGs too.

Test plan

  • Reproduced on main: pnpm changeset version → Command "@biomejs/biome" not found, exit 254
  • With this change, pnpm changeset version on main succeeds: dev-server and the linked packages go to 5.4.6, and the chore: bump dependencies to resolve security advisories #1534 changelog entry is generated. I discarded the generated output afterwards.
  • pnpm lint:ci passes on the generated output

@changesets/cli 3.1.0 auto-detects Biome and runs `pnpm exec @biomejs/biome`, which pnpm cannot resolve (the bin is `biome`), so `changeset version` fails. The version-packages script already formats with `pnpm lint` afterwards.
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
repack-website Ready Ready Preview Nov 30, 2026 2:46pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 70d8eb6

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

@dannyhw
dannyhw merged commit cbd0b02 into main Nov 30, 2026
10 of 11 checks passed
@dannyhw
dannyhw deleted the fix/changesets-format branch November 30, 2026 14:56

This branch was successfully deployed

1 active deployment
Preview — 70d8eb66 Deployed Nov 30, 2026 by vercel[bot]
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