Skip to content

fix(build): run the pinned pnpm with npx when pnpm isn't installed - #175

Merged
ngoyal16 merged 1 commit into
mainfrom
fix/release-pnpm
Nov 30, 2026
Merged

ngoyal16 merged 1 commit into
mainfrom
fix/release-pnpm

Conversation

@ngoyal16

Copy link
Copy Markdown
Contributor

Bug

The v0.16.0 release has no binaries. GoReleaser failed in its before hook make web with "pnpm not found" (run 46497469235).

Fix

  • make web and make web-dev use the pnpm on PATH when there is one. It switches itself to the release web/package.json pins.
  • Otherwise they run that pinned release with npx --yes. So make web works anywhere Node.js and npm are installed: GoReleaser's release job, CI, or a fresh machine. Nobody needs to install pnpm first.
  • The pnpm-check target, which stopped with an install hint, is gone.

Tested

  • With a PATH holding only node, npm, npx, make and basic tools (no pnpm, as in the release job), and the UI build output removed first, make web runs npx --yes pnpm@12.23.0 install --frozen-lockfile && … run build and builds internal/admin/ui.
  • With pnpm on PATH, make -n web still runs pnpm directly.

After merging

This is a fix:, so Release Please opens 0.16.1, and that release gets its binaries. v0.16.0 can't be repaired in place: its tag points at the commit with the old Makefile, so re-running GoReleaser on it would fail the same way. Its Docker image is built separately and isn't affected.

🤖 Generated with Claude Code

GoReleaser's release job runs make web with only the runner's Node and
npm, so the v0.16.0 release failed with "pnpm not found" and has no
binaries. make web and web-dev now use the pnpm on PATH, else the
release web/package.json pins run with npx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ngoyal16
ngoyal16 merged commit c4dcfbd into main Nov 30, 2026
14 checks passed
@ngoyal16
ngoyal16 deleted the fix/release-pnpm branch November 30, 2026 20:04
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