@ts-max/deploy 0.0.18 → 0.0.19

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.
Files changed (2) hide show
  1. package/dist/index.cjs +2 -0
  2. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -29,6 +29,7 @@ const defaultConfig = {
29
29
  GIT_URL: getGitUrl(),
30
30
  GIT_BRANCH: getGitBranch$1(),
31
31
  NODE_VERSION: "18",
32
+ NOTICE_ENABLED: false,
32
33
  NOTICE_USERS: void 0,
33
34
  MESSAGE_URL: void 0,
34
35
  MESSAGE_TOKEN: void 0
@@ -276,6 +277,7 @@ async function showLog(buildNumber) {
276
277
  config.DOMAIN && console.log(`- web访问域名: ${config.DOMAIN}`);
277
278
  }
278
279
  async function notice(buildNumber) {
280
+ if (!config.NOTICE_ENABLED) return;
279
281
  const jenkinsAddress = getJenkinsAddress(`/${buildNumber}/console`);
280
282
  const webAddress = await getWebAddress();
281
283
  let users = config.NOTICE_USERS || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-max/deploy",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
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": "d1f2cf24a6fe65d2a2e1c6fa8d5fcc945b732279"
48
+ "gitHead": "1652d23f73bbab0671dde071aa50af5ac4a259fd"
49
49
  }