ci: disable husky in the release job so semantic-release can commit - #9
Merged
Conversation
The Release job runs @semantic-release/git, which makes a chore(release): <v> commit whose body is the generated changelog. Husky's commit-msg hook fires in CI and commitlint rejects it — changelog lines carry GitHub commit/issue URLs longer than the 100-char footer-max-line-length rule — so the release commit fails and no version bump or npm publish happens (npm was stuck at 1.2.0 despite two merged feat PRs). Setting HUSKY=0 for the Release step only skips the hook on the auto-generated release commit; commitlint still guards human commits everywhere else.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
🎉 This PR is included in version 1.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
Releasejob has been failing onmain— for PR #7 (RN engine) and PR #8 (match layout) — so nothing has published to npm: the registry is still at1.2.0despite two mergedfeatPRs that should have shipped1.3.0.Root cause is not npm auth.
@semantic-release/gitmakes achore(release): <v>commit whose body is the generated changelog, and husky'scommit-msghook fires in CI.commitlint then rejects the commit:
Changelog lines embed GitHub commit + issue URLs, which are well over 100 chars — so effectively every release commit trips the rule, and the version bump +
npm publishnever run.Fix
Set
HUSKY: 0on theReleasestep's env, so husky hooks are disabled for the auto-generated release commit only.commitlint still guards human commits everywhere else (local hooks + PR title checks are untouched).
Effect once merged
The Release job on
mainsucceeds and semantic-release publishes the pending1.3.0(the merged RN engine + match-layout work).This PR itself is
ci:scope — no bump — it just unblocks the pipeline.