From d4ed1d5add3139a43adf5521f84709884fd9dde1 Mon Sep 17 00:00:00 2001 From: Kevin Chappell Date: Tue, 29 Oct 2024 23:51:28 -0700 Subject: [PATCH] fix: lefthook preventing release --- .lefthook/commitlint.sh | 5 +++++ lefthook.yml | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100755 .lefthook/commitlint.sh diff --git a/.lefthook/commitlint.sh b/.lefthook/commitlint.sh new file mode 100755 index 0000000..dc60f5e --- /dev/null +++ b/.lefthook/commitlint.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +if [[ -z "$CI" ]]; then + npx commitlint --edit $GIT_PARAMS +fi diff --git a/lefthook.yml b/lefthook.yml index 6e448c8..4f5020f 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -1,4 +1,4 @@ commit-msg: - commands: - commitlint: - run: npx commitlint --edit $GIT_PARAMS + scripts: + "commitlint.sh": + runner: bash