From 7d3f17424f0a23d4387851da7bd345543d27138a Mon Sep 17 00:00:00 2001 From: Anthony McLin Date: Thu, 11 Mar 2021 20:49:31 -0800 Subject: [PATCH] ci: disable husky hooks preventing commits on CI pipelines --- .husky/commit-msg | 3 +++ .husky/pre-commit | 3 +++ .husky/pre-push | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.husky/commit-msg b/.husky/commit-msg index d468455..2363255 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1,4 @@ +# Disable Husky hooks on CI environments +[ -n "$CI" ] && exit 0 + npx --no-install commitlint --edit $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 18de984..8eb8acc 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,4 @@ +# Disable Husky hooks on CI environments +[ -n "$CI" ] && exit 0 + npm test \ No newline at end of file diff --git a/.husky/pre-push b/.husky/pre-push index 18de984..8eb8acc 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1 +1,4 @@ +# Disable Husky hooks on CI environments +[ -n "$CI" ] && exit 0 + npm test \ No newline at end of file