Skip to content

fix(monorepo-preview-release,preview-release): pass --no-git-checks when bumping versions#22

Merged
rqbazan merged 2 commits into
mainfrom
fix/monorepo-preview-release-dirty-tree
Jul 5, 2026
Merged

fix(monorepo-preview-release,preview-release): pass --no-git-checks when bumping versions#22
rqbazan merged 2 commits into
mainfrom
fix/monorepo-preview-release-dirty-tree

Conversation

@rqbazan

@rqbazan rqbazan commented Jul 5, 2026

Copy link
Copy Markdown
Member

Summary

Surfaced by variableland/backend#46 — the first PR where the monorepo preview release touched more than one package.

bumpPackage runs pnpm version prerelease --preid <preid> --no-git-tag-version per changed package. pnpm version refuses to run on an unclean working tree even with --no-git-tag-version:

[ERR_PNPM_UNCLEAN_WORKING_TREE] Working tree is not clean. Commit or stash your changes.
  • monorepo-preview-release: the first bump dirties the tree, so every subsequent bump fails — any PR touching 2+ packages breaks.
  • preview-release: bumps a single package, so it doesn't hit the multi-bump case today, but the same latent failure triggers if any earlier CI step leaves the tree dirty. Fixed for consistency — pnpm publish in both actions already opts out of git checks for the same reason.

--no-git-checks is the supported escape hatch (verified locally on pnpm 11.9.0). dist/ rebuilt with mise run build.

🤖 Generated with Claude Code

rqbazan and others added 2 commits July 5, 2026 11:58
…ions

When a PR changes more than one package, the first pnpm version run
dirties the working tree and every subsequent bump fails with
ERR_PNPM_UNCLEAN_WORKING_TREE.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Same latent failure as the monorepo variant: pnpm version refuses to
run on an unclean working tree, so any CI step that dirties the tree
before the bump breaks the release. pnpm publish in this action already
opts out of git checks for the same reason.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@rqbazan rqbazan changed the title fix(monorepo-preview-release): pass --no-git-checks when bumping versions fix(monorepo-preview-release,preview-release): pass --no-git-checks when bumping versions Jul 5, 2026
@rqbazan rqbazan merged commit fb5a6f3 into main Jul 5, 2026
1 check passed
@rqbazan rqbazan deleted the fix/monorepo-preview-release-dirty-tree branch July 5, 2026 17:01
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