cloudcc-cli 0.8.1 → 0.8.2

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/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ # ReleaseV0.8.2
2
+ #### 发布日期:2021-11-18
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 优化
6
+ * 推送代码如果失败,强制退出
7
+
1
8
  # ReleaseV0.8.1
2
9
  #### 发布日期:2021-11-18
3
10
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -57,14 +57,15 @@ class Publish {
57
57
  }
58
58
 
59
59
  // 发布代码并设置tags,触发发布,飞书提醒
60
- pushCodeAndTags([condition.type])
61
- if (projectConfig && projectConfig.config) {
62
- jenkins(projectConfig.config["jenkins-" + condition.type])
60
+ if (pushCodeAndTags([condition.type])) {
61
+ if (projectConfig && projectConfig.config) {
62
+ jenkins(projectConfig.config["jenkins-" + condition.type])
63
+ }
64
+ notifyFeishu(condition.type, version, projectConfig)
65
+ console.log();
66
+ console.log(chalk.green('发布完成'));
67
+ console.log();
63
68
  }
64
- notifyFeishu(condition.type, version, projectConfig)
65
- console.log();
66
- console.log(chalk.green('发布完成'));
67
- console.log();
68
69
  }
69
70
  }
70
71
  }
package/utils/pushCode.js CHANGED
@@ -31,9 +31,9 @@ function push(version) {
31
31
  console.log();
32
32
  console.log(chalk.green('代码推送成功!'));
33
33
  } catch (error) {
34
- console.log(chalk.red('代码推送失败,请稍后手动推送!'));
34
+ console.log(chalk.red('代码推送失败,本地代码与线上不同步,请先 git pull 同步!'));
35
35
  console.log();
36
- // return false;
36
+ return false;
37
37
  }
38
38
  return true
39
39
  }