修改 pub 脚本

This commit is contained in:
whyour 2022-12-28 11:14:57 +08:00
parent 0ab756665e
commit 08ee61b179

View File

@ -13,6 +13,10 @@ git push
echo -e "更新cdn文件" echo -e "更新cdn文件"
ts-node sample/tool.ts ts-node sample/tool.ts
string=$(cat version.yaml | grep "version" | egrep "[^ ]*" -o | egrep "\d\.*")
version="v$string"
echo -e "当前版本$version"
echo -e "删除已经存在的本地tag" echo -e "删除已经存在的本地tag"
git tag -d "$version" &>/dev/null git tag -d "$version" &>/dev/null