Skip to content

ci(release): install dprint before running version script#4

Merged
glockyco merged 1 commit into
mainfrom
fix/release-install-dprint
Jun 4, 2026
Merged

ci(release): install dprint before running version script#4
glockyco merged 1 commit into
mainfrom
fix/release-install-dprint

Conversation

@glockyco

@glockyco glockyco commented Jun 4, 2026

Copy link
Copy Markdown
Owner

The 4.0.0 Release workflow failed a second time, now at the dprint fmt
half of the version script:

$ changeset version && dprint fmt packages/*/CHANGELOG.md
🦋  All files have been updated. Review them and commit at your leisure
/usr/bin/bash: line 1: dprint: command not found
error: script "version" exited with code 127

changeset version itself succeeded — the failure is that release.yml
never installs dprint (only ci.yml does). The dprint fmt step was added
to the version script after the 3.0.0 release, so this is the first release
to exercise it, and the missing install surfaced now.

This adds a pinned dprint install (DPRINT_VERSION 0.54.0, matching
ci.yml) under ~/.local/bin before the changesets/action step.

Pre-validated locally:

  • dprint check .github/workflows/release.yml and actionlint clean.
  • bun run build (the publish phase's first half) succeeds for all packages,
    so the subsequent publish round should not regress.

After merge, the Release workflow re-runs with dprint on PATH, bun run version completes, and the changesets/action opens the "Version packages" PR
(protocol 4.0.0, sdk 4.0.0, cli/mcp 3.0.1).

`bun run version` is `changeset version && dprint fmt packages/*/CHANGELOG.md`.
The `dprint fmt` was added after the 3.0.0 release (to keep the regenerated
CHANGELOGs from failing the next ci.yml dprint check), but release.yml never
installs dprint — only ci.yml does. So the first release to exercise the new
version script failed with `dprint: command not found` (exit 127) right after
`changeset version` succeeded, before the Version PR could be opened.

Add a pinned dprint install (DPRINT_VERSION 0.54.0, matching ci.yml) under
~/.local/bin before the changesets/action step. changeset version itself was
already working, and the publish phase (bun run build && changeset publish via
npm OIDC) is unchanged.
@glockyco
glockyco merged commit 71b3666 into main Jun 4, 2026
5 checks passed
@glockyco
glockyco deleted the fix/release-install-dprint branch June 4, 2026 19:15
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