Skip to content

Commit

Permalink
ci: disable husky hooks preventing commits on CI pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
amclin committed Mar 12, 2021
1 parent 3d98516 commit 7d3f174
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Disable Husky hooks on CI environments
[ -n "$CI" ] && exit 0

npx --no-install commitlint --edit $1
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Disable Husky hooks on CI environments
[ -n "$CI" ] && exit 0

npm test
3 changes: 3 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Disable Husky hooks on CI environments
[ -n "$CI" ] && exit 0

npm test

0 comments on commit 7d3f174

Please sign in to comment.