From 296118470c342bb1646d58223eb2aa51c6eba027 Mon Sep 17 00:00:00 2001 From: scarqin Date: Wed, 18 Dec 2024 17:13:29 +0800 Subject: [PATCH] test --- frontend/.husky/pre-push | 8 +++----- frontend/package.json | 3 +-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/frontend/.husky/pre-push b/frontend/.husky/pre-push index 8443a739..27694f8f 100755 --- a/frontend/.husky/pre-push +++ b/frontend/.husky/pre-push @@ -16,10 +16,8 @@ if [[ $BRANCH == feature/* || $BRANCH == fix/* ]]; then fi # 只有在明确要求时才推送到 GitHub - if [[ "$1" == "--with-github" ]]; then - if echo "$REMOTES" | grep -q "github"; then - echo "Pushing to GitHub..." - git push github $BRANCH - fi + if echo "$REMOTES" | grep -q "github"; then + echo "Pushing to GitHub..." + git push github $BRANCH fi fi diff --git a/frontend/package.json b/frontend/package.json index 5d09c20d..d8f2cfa3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,8 +14,7 @@ "dev": "lerna run dev --scope=core --stream", "stop": "kill-port --port 5000", "scan": "i18next-scanner --config i18next-scanner.config.js", - "prepare": "husky", - "push:all": "git push && git push --with-github" + "prepare": "husky" }, "keywords": [], "author": "",