code push 推送步骤

1、打包并推送Staging的版本

code-push release-react ZSKQ ios -m

2、测试打包

react-native bundle --entry-file index.ios.js --bundle-output ~/Desktop/main.jsbundle --platform ios --assets-dest ~/Desktop/ --dev false

react-native bundle --entry-file index.ios.js --bundle-output ~/Desktop/main.jsbundle --platform ios --dev false

3、将Staging的版本推送到Production给正式用户

code-push promote ZSKQ Staging Production

4、最新项目使用中的key

Staging:uPTrHBIPBU3qY_qc4DkmU_xn53LX4JzaZfEDl

最新已推送版本:v3

Production:TOvNofVuohRPbydF9Q7MJtITKxcP4JzaZfEDl

最新已推送版本:v3

5、清除推送版本

code-push deployment clear ZSKQ Production

6、回滚到特定版本

code-push rollback ZSKQ Production --targetRelease v3

git 操作

1、删除本地分支

git branch -d v3.0.1

2、删除远程分支

git branch -d -r origin/v3.0.1

git push origin :v3.0.1

3、创建分支

git checkout -b v3.0.2

git push origin v3.0.2

4、添加tag

git tag -a v3.0.1 -m 'v3.0.1'

git push origin v3.0.1

猜你喜欢

转载自222xiaohuan.iteye.com/blog/2346888