Skip to content

Commit 10237f4

Browse files
hiddentaoclaude
andcommitted
fix(ci): disable husky during semantic-release to bypass commit-msg hook
semantic-release's @semantic-release/git plugin creates the release commit via `git commit`, which triggers husky's commit-msg hook. The auto-generated changelog body contains long URL footers that exceed commitlint's default footer-max-line-length of 100, failing the hook. Set HUSKY=0 on the Release step so husky short-circuits in CI, per the husky docs. Local dev hooks are unaffected. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a3e7cba commit 10237f4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ jobs:
4949
if: github.ref == 'refs/heads/main'
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
HUSKY: "0"
5253
run: npx semantic-release
5354

0 commit comments

Comments
 (0)