hsb-release
v1.1.4
Published
hsb-release-tool
Downloads
5
Readme
prod、move front类型发版工具
- 自动生成tag,并推送
- 命令行发版,不用打开页面,且仅选择必要信息,减少重复填写发版信息
- 查询发版状态,不用人工检查发版状态
- 发版成功或失败推送钉钉,自动提醒操作人
- npm引入,npx执行
Usage
复制以下json配置到项目根目录下release.config.json,更换对应需要的参数(参数可在发版系统查看请求参数)
{
"alwaysNeedTest": false, // 是否总是需要测试
"failDing": { // 失败钉钉配置
"url": "钉钉webhook",
"at": [
"手机号码",
"手机号码"
]
},
"successDing": { // 成功钉钉配置
"url": "钉钉webhook",
"at": [
"手机号码",
"手机号码"
]
},
"USER": {
"SYSTEM_ID": "44",
"USERNAME": "AMC账号",
"PASSWORD": "AMC密码",
"URL": "发版系统地址", // 发版系统地址
"HOST": "发版系统域名" // 发版系统域名
},
"ORDER": { // 发版工单信息
"ftid": "21923671",
"TL_ID": "1244",
"TL": "羊年",
"TE": {"1875": "胡育新"},
"app_name": "recycle_nubia",
"cdn_upload_dir":"/karecycle/",
"gray_publish_flag": 0,
"publish_desc": "",
"publish_type": "",
"push_cdn_type": 2,
"rolling_flag": 0,
"test_flag": 1
}
}
npm install hsb-release --save
npx hsb-release