Skip to content

Commit d392ed4

Browse files
committed
ci(release): skip lefthook on bot commits
The changesets/action commit `chore: version packages (next)` triggers the pre-commit hook, whose `check:types` job runs `pnpm` and pnpm 11's verifyDepsBeforeRun re-enters the `prepare` script (`lefthook install`) from inside the already-running hook. On the current runner image this fails with "could not replace the hook: ... no such file or directory" and aborts the release. Setting LEFTHOOK=0 on this step disables hooks for the bot's commit, which does not need lint/types checks anyway (deterministic bumps to package.json, CHANGELOG.md, and .changeset/pre.json).
1 parent e4d24b8 commit d392ed4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ jobs:
3737
commit: "chore: version packages"
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
LEFTHOOK: "0"

0 commit comments

Comments
 (0)