Skip to content

ci: publish @hostess/browser and fix workspace:* rewrite in publish flow - #5

Merged
immanuel-peter merged 1 commit into
mainfrom
publish-browser-package
Jul 19, 2026
Merged

ci: publish @hostess/browser and fix workspace:* rewrite in publish flow#5
immanuel-peter merged 1 commit into
mainfrom
publish-browser-package

Conversation

@immanuel-peter

Copy link
Copy Markdown
Contributor

Two publish-flow bugs that would have broken the first npm install of @hostess/nextjs@0.2.0:

  1. @hostess/browser was never published. nextjs 0.2.0 depends on it at runtime, so installs would fail to resolve it. The workflow now publishes browser first, then nextjs.
  2. npm publish from the workspace ships workspace:* verbatim — npm doesn't understand pnpm's workspace protocol, so the published nextjs would have had an uninstallable dependency string. Packages are now packed with pnpm pack (verified locally: the tarball's dependency reads "@hostess/browser": "0.1.0") and the tarball is published with the OIDC-capable npm, keeping trusted publishing + provenance unchanged.

Also skips versions already on the registry, so re-running a release or releasing a single bumped package is safe.

Action needed outside this PR: @hostess/browser is a brand-new package — npm trusted publishing can't create a package, so its very first 0.1.0 publish must be done manually (pnpm pack + npm publish with a real login), then the trusted publisher configured at npmjs.com for it like the existing @hostess/nextjs one.

🤖 Generated with Claude Code

@hostess/nextjs 0.2.0 has a runtime dependency on @hostess/browser, but the
publish workflow only published nextjs — and published it with `npm publish`
from the workspace, which would have shipped the workspace:* protocol string
verbatim (uninstallable). Pack each package with pnpm (which rewrites
workspace deps to real versions), publish browser before nextjs, and skip
versions already on the registry so release re-runs are safe.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 19, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@immanuel-peter
immanuel-peter merged commit 8554752 into main Jul 19, 2026
1 check passed
@immanuel-peter
immanuel-peter deleted the publish-browser-package branch July 19, 2026 22:55
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