From c11483ecc1be444154ef4e638ea107c4fd3674d4 Mon Sep 17 00:00:00 2001 From: Liang Yi Date: Wed, 1 Sep 2021 00:36:39 +0800 Subject: [PATCH] no log: Fix a protential issue which may crash the release pipeline --- frontend/.husky/pre-commit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/.husky/pre-commit b/frontend/.husky/pre-commit index c306ede8a..3f1364f9c 100755 --- a/frontend/.husky/pre-commit +++ b/frontend/.husky/pre-commit @@ -1,5 +1,7 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -cd frontend || exit +[ -n "$CI" ] && exit 0 + +cd frontend npx pretty-quick --staged