Skip to content

fix: skip hk hooks in the release job - #18

Merged
davidjalbers merged 1 commit into
mainfrom
fix/skip-hook-on-release
Aug 1, 2026
Merged

fix: skip hk hooks in the release job#18
davidjalbers merged 1 commit into
mainfrom
fix/skip-hook-on-release

Conversation

@davidjalbers

Copy link
Copy Markdown
Contributor

mise install runs the postinstall hook, which runs hk install --mise and points core.hooksPath at hk. hk's hooks then fire on the commits and pushes changesets/action makes.

pre-push cannot resolve the tag objects changeset publish pushes: it looks for a merge base against origin/main, and an annotated tag is not a commit, so it aborts with "object is no commit object" and takes the tag push down with it. That published 0.3.0/0.1.2 to npm but left the tags and GitHub releases uncreated.

Re-running the job could not repair it either, since changesets/action only tags what changeset publish reports as newly published. Those two tags and releases were created by hand.

Skipping pre-commit alongside it: re-running lint/check/test in the release job only repeats what CI already ran on the pull request.

`mise install` runs the postinstall hook, which runs `hk install --mise`
and points core.hooksPath at hk. hk's hooks then fire on the commits and
pushes changesets/action makes.

pre-push cannot resolve the tag objects `changeset publish` pushes: it
looks for a merge base against origin/main, and an annotated tag is not a
commit, so it aborts with "object is no commit object" and takes the tag
push down with it. That published 0.3.0/0.1.2 to npm but left the tags
and GitHub releases uncreated.

Re-running the job could not repair it either, since changesets/action
only tags what `changeset publish` reports as newly published. Those two
tags and releases were created by hand.

Skipping pre-commit alongside it: re-running lint/check/test in the
release job only repeats what CI already ran on the pull request.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@davidjalbers
davidjalbers merged commit 63b505e into main Aug 1, 2026
2 checks passed
@davidjalbers
davidjalbers deleted the fix/skip-hook-on-release branch August 1, 2026 15:29
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