This commit is contained in:
scarqin
2024-12-18 17:13:29 +08:00
parent 6d4dccc6b7
commit 296118470c
2 changed files with 4 additions and 7 deletions
+3 -5
View File
@@ -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
+1 -2
View File
@@ -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": "",