Skip to content

ci: disable husky hooks during semantic-release commit - #39

Merged
dsfaccini merged 1 commit into
mainfrom
fix-release-husky
Jul 6, 2026
Merged

ci: disable husky hooks during semantic-release commit#39
dsfaccini merged 1 commit into
mainfrom
fix-release-husky

Conversation

@dsfaccini

Copy link
Copy Markdown
Contributor

The 2.0.0 release run (and the earlier Jun-27 run) failed at publish time: @semantic-release/git commits CHANGELOG.md + package.json, which fires the .husky/pre-commit hook — gen:constants (cd agent && uv run python …), typecheck, test — and the Node-only release runner has no uv, so the commit fails (uv: not found) and semantic-release aborts before the npm publish. Net: 2.0.0 was computed correctly but never published (npm/CDN still 1.2.0).

Fix: set HUSKY: 0 on the Release step. The release commit is [skip ci] and only bumps the changelog + version — it doesn't need the pre-commit suite (which already ran on the merged PRs).

Merging this re-fires release.yml, which recomputes 2.0.0 (the feat! breaking commit is still in range since v1.2.0 was never tagged) and this time publishes @pydantic/ai-chat-ui@2.0.0 to npm → jsdelivr.

Pre-existing pipeline bug — surfaced while cutting 2.0.0 to unblock the pydantic-ai chat-UI integration.

@semantic-release/git commits CHANGELOG.md + package.json on release, which
fired the pre-commit hook — gen:constants (needs `uv`), typecheck, and test —
and failed on the Node-only release runner (`uv: not found`), aborting before
publish. Set HUSKY=0 for the Release step so the release commit skips hooks.
@dsfaccini
dsfaccini merged commit fcce769 into main Jul 6, 2026
2 checks passed
@dsfaccini
dsfaccini deleted the fix-release-husky branch July 6, 2026 17:23
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant