Skip to content

fix(release): drop test step from prepublishOnly#63

Merged
zhawtof merged 1 commit into
mainfrom
fix/prepublish-only-no-tests
May 16, 2026
Merged

fix(release): drop test step from prepublishOnly#63
zhawtof merged 1 commit into
mainfrom
fix/prepublish-only-no-tests

Conversation

@zhawtof
Copy link
Copy Markdown
Contributor

@zhawtof zhawtof commented May 16, 2026

Summary

  • pnpm publish in the release-please workflow has been failing because prepublishOnly runs pnpm test, which loads the Storybook browser tests and needs Chromium.
  • The release-please workflow intentionally does not install Chromium on the npm-token-bearing job — the comment is explicit that publish-side gating is intentionally lint + typecheck + build only.
  • This is why release run 25968388660 failed and 0.6.1-alpha.0 never landed on npm even though the GitHub release/tag exist.
  • Dropping && pnpm test from prepublishOnly aligns the local publish hook with the workflow's stated security stance. The full suite already ran in CI against the same commit.

Test plan

  • Next release-please PR merge publishes successfully to npm (will be 0.6.1-alpha.1, since the 0.6.1-alpha.0 tag already exists).

🤖 Generated with Claude Code

The release-please workflow intentionally skips Chromium install on the
npm-token-bearing job (see release-please.yml:23-28) — but pnpm publish
triggers prepublishOnly, which ran pnpm test, which needs Chromium for
the Storybook browser tests. Result: every npm publish since #53 fails
before uploading. Lint/typecheck/build/full-suite already ran in CI
against the same commit; build:clean is sufficient publish-side gating.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
block-kitchen 380151b Commit Preview URL

Branch Preview URL
May 16 2026, 05:40 PM

@zhawtof zhawtof merged commit 431ef49 into main May 16, 2026
12 checks passed
@zhawtof zhawtof deleted the fix/prepublish-only-no-tests branch May 16, 2026 17:48
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