Skip to content

Commit 87133e8

Browse files
committed
build(deps-dev): skip husky on CI
1 parent 0fcf7b6 commit 87133e8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.husky/commit-msg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4+
# Skip commit-msg hook on CI
5+
[ -n "$CI" ] && exit 0
6+
47
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4+
# Skip pre-commit hook on CI
5+
[ -n "$CI" ] && exit 0
6+
47
npx --no-install lint-staged

0 commit comments

Comments
 (0)