npm run pub之后,在选择y之后,并没有进行发布
来源:13-4 ts-axios 编译与发布 运行部署脚本

qq_洌_0
2020-11-13
release.sh 文件:
#!/usr/bin/env sh
set -e
echo "Enter release version: "
read VERSION
read -p "Release $VERSION -are you sure?(y/n)" -n 1 -r
echo #(optional) move to a new line
if [[ $RELY =~ ^[Y/y]$ ]]
then
echo "Release $VERSION ..."
#commit
git add -A
git commit -m "[build] $VERSION"
npm version $VERSION --message "[release] $VERSION"
git push origin master
#publish
npm publish
fi
项目地址:
我的项目
写回答
1回答
-
ustbhuangyi
2020-11-15
控制台输出了哪些信息?
032020-11-16
相似问题