11 Star 29 Fork 3

罪./cache-bucket

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
publish.sh 409 Bytes
一键复制 编辑 原始数据 按行查看 历史
罪. 提交于 2018-10-20 10:01 +08:00 . Fix compile config
#!/usr/bin/env bash
set -e
yarn run build
cp package.json README.md LICENSE ./lib/
old_registry=$(npm config get registry)
npm config set registry https://registry.npmjs.org
set +e
whoami=$(npm whoami 2>/dev/null)
set -e
if [ -z "$whoami" ]
then
echo "login plz..."
npm login
fi
echo "I am: $(npm whoami)"
sleep 1
echo "Begin publish..."
npm publish ./lib/
npm config set registry ${old_registry}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/geekact/cache-bucket.git
git@gitee.com:geekact/cache-bucket.git
geekact
cache-bucket
cache-bucket
master

搜索帮助