@ts-max/deploy 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -308,6 +308,17 @@ async function notice(buildNumber) {
|
|
|
308
308
|
token: config.MESSAGE_TOKEN,
|
|
309
309
|
userIds: users.join("|"),
|
|
310
310
|
type: "markdown",
|
|
311
|
+
data: {
|
|
312
|
+
app: config.APP_TITLE,
|
|
313
|
+
env: config.ENV_TIP,
|
|
314
|
+
operator,
|
|
315
|
+
date,
|
|
316
|
+
gitBranch: config.GIT_BRANCH,
|
|
317
|
+
commit,
|
|
318
|
+
webAddress,
|
|
319
|
+
domain: config.DOMAIN,
|
|
320
|
+
jenkinsAddress
|
|
321
|
+
},
|
|
311
322
|
content: [
|
|
312
323
|
`**「${config.APP_TITLE}」${config.ENV_TIP}部署成功!**`,
|
|
313
324
|
`>部署人员:<font color="info">${operator}</font>`,
|
|
@@ -324,8 +335,8 @@ async function notice(buildNumber) {
|
|
|
324
335
|
method: "post",
|
|
325
336
|
url: config.MESSAGE_URL,
|
|
326
337
|
data: message
|
|
327
|
-
}).catch((
|
|
328
|
-
console.log(
|
|
338
|
+
}).catch(() => {
|
|
339
|
+
console.log("部署成功,消息通知发送失败!");
|
|
329
340
|
});
|
|
330
341
|
}
|
|
331
342
|
function dateFormat(fmt, date) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-max/deploy",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "部署脚本",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"cli"
|
|
46
46
|
],
|
|
47
47
|
"license": "MIT",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ca0ce611c189598e39dfe8a71bdce8f714a28ea8"
|
|
49
49
|
}
|