Skip to content

fix: pass --no-git-checks to pnpm publish#576

Merged
southpolesteve merged 1 commit intomainfrom
fix/publish-workflow
Mar 17, 2026
Merged

fix: pass --no-git-checks to pnpm publish#576
southpolesteve merged 1 commit intomainfrom
fix/publish-workflow

Conversation

@southpolesteve
Copy link
Copy Markdown
Collaborator

Summary

  • The publish workflow bumps the version in package.json without committing (--no-git-tag-version), leaving the working tree dirty. pnpm's publish command enforces git-checks by default and refuses to publish in this state (ERR_PNPM_GIT_UNCLEAN). This adds --no-git-checks before the -- separator so pnpm skips the check while --provenance still passes through to npm.

Fixes: https://github.com/cloudflare/vinext/actions/runs/23191634900/job/67389628516

The version bump step modifies package.json without committing, leaving
the working tree dirty. pnpm publish enforces git-checks by default and
refuses to publish. Pass --no-git-checks before the -- separator so
pnpm skips the check while --provenance still reaches npm.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 17, 2026

Open in StackBlitz

npm i https://pkg.pr.new/vinext@576

commit: eb5b2f6

@github-actions
Copy link
Copy Markdown

Example Preview Production Original
app-router-cloudflare preview production
pages-router-cloudflare preview production
app-router-playground preview production original
realworld-api-rest preview production
nextra-docs-template preview production
benchmarks preview production
hackernews preview production original

@southpolesteve southpolesteve enabled auto-merge (squash) March 17, 2026 13:31
@southpolesteve southpolesteve merged commit a6d6688 into main Mar 17, 2026
25 checks passed
@southpolesteve southpolesteve deleted the fix/publish-workflow branch March 17, 2026 13:34
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