合并选择器和地址解析

This commit is contained in:
2022-03-26 16:21:52 +08:00
commit 1fa9959cdf
42 changed files with 24100 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
set -e
echo "Enter commit message: "
read MESSAGE
echo "Commit $MESSAGE ..."
# add
git add -A
# npm run lint-staged
# commit
git commit -m "$MESSAGE"
git push origin develop
+30
View File
@@ -0,0 +1,30 @@
set -e
echo "Enter release version: "
read VERSION
echo "Enter commit message: "
read MESSAGE
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Releasing $VERSION ..."
npm run build
npm run build-lib
git add .
git commit -m "$MESSAGE"
git push origin develop
npm version $VERSION --message "build: $VERSION"
# commit
git checkout master
git merge develop
git push origin master
# publish
git tag $VERSION -m "release: $VERSION"
git push origin "$VERSION"
git checkout develop
fi