把下一个 npm 版本先放到 分支里面

This commit is contained in:
2betop 2020-10-26 18:37:17 +08:00
parent be299be28d
commit 8d4969c84a
2 changed files with 32 additions and 1 deletions

View File

@ -1,4 +1,4 @@
language: node_js
node_js:
- 10
script: sh deploy-gh-pages.sh
script: sh deploy-gh-pages.sh && sh deploy-npm-beta.sh

31
deploy-npm-beta.sh Normal file
View File

@ -0,0 +1,31 @@
#!/bin/bash
set -e
rm -rf npm
echo "Cloning"
git clone -b npm https://$GH_TOKEN@github.com/baidu/amis.git npm
echo "building"
sh publish.sh
cp -rf lib npm
cp package.json npm
cp schema.json npm
cp -rf scss npm
cp -rf examples npm
cp -rf sdk npm
echo "pushing"
cd npm
git config user.email "liaoxuezhi@icloud.com"
git config user.name "liaoxuezhi"
git add .
git commit --allow-empty -m "npm 下一个版本"
git push --tags https://$GH_TOKEN@github.com/baidu/amis.git npm
echo "done"