18 Star 81 Fork 16

罪./react-native-upload

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
publish.sh 449 Bytes
一键复制 编辑 原始数据 按行查看 历史
罪. 提交于 2019-08-31 23:16 +08:00 . feat: Upload app to pgyer.com
set -e
rm -rf ./build
mkdir ./build
cp -R ./src/* ./build
cp README.md package.json LICENSE ./build
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 ./build/ --access=public "$@"
npm config set registry ${old_registry}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/geekact/react-native-upload.git
git@gitee.com:geekact/react-native-upload.git
geekact
react-native-upload
react-native-upload
master

搜索帮助