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

控制台输出了哪些信息?

0
3
qq_洌_0
回复
ustbhuangyi
我自己执行了npm publish --allow-same-version 就可以了... 第一次发布应该没有相同版本
2020-11-16
共3条回复

下一代前端开发语言 TypeScript从零重构axios

课程从零开始重构功能完整的JS库,是学习造轮子的不二之选!

2631 学习 · 877 问题

查看课程