From ee731e416d02c0bf40b1d09edeca066e3437e665 Mon Sep 17 00:00:00 2001 From: Jonas Metzener Date: Thu, 20 Jan 2022 15:02:44 +0100 Subject: [PATCH] chore(ci): skip husky in CI --- .husky/commit-msg | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 2785bc1d..0c159680 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1,8 @@ -yarn commitlint --edit $1 +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +# skip in CI +[ -n "$CI" ] && exit 0 + +# lint commit message +yarn commitlint --edit "$1"