1 Star 0 Fork 0

matian/bot-12.1.4

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
release-version.sh 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
matian 提交于 2019-09-26 13:26 . first commit
#!/bin/bash
DOCS_VERSION_COMMAND="run version"
echo "Select an option for release:"
echo
select VERSION in patch minor major "Specific Version"
do
echo
if [[ $REPLY =~ ^[1-4]$ ]]; then
if [[ $REPLY == 4 ]]; then
read -p "Enter a specific version: " -r VERSION
echo
if [[ -z $REPLY ]]; then
VERSION=$REPLY
fi
fi
read -p "Create $VERSION commit - Are you sure ... (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ || -z $REPLY ]]; then
# Bump version
yarn version --new-version $VERSION --no-git-tag-version
NEW_VERSION=$(node -p "require('./package.json').version")
cd docs/guide/website && yarn $DOCS_VERSION_COMMAND $NEW_VERSION && cd ../../..
# Update changelog from git history
yarn cmd changelog
# Create commit
git add -A
git commit -m "v$NEW_VERSION"
git tag -a "v$NEW_VERSION" -m "created tag v$NEW_VERSION"
echo "-----"
echo "Finished, commit created, need to push to origin/master directly"
else
echo Cancelled
fi
break
else
echo Invalid \"${REPLY}\"
echo "To continue, please enter one of the options (1-4):"
echo
fi
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/martin135246/bot-12.1.4.git
git@gitee.com:martin135246/bot-12.1.4.git
martin135246
bot-12.1.4
bot-12.1.4
master

搜索帮助