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 +7 -0
- package/package.json +1 -1
- package/src/publishProject.js +8 -7
- package/utils/pushCode.js +2 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/src/publishProject.js
CHANGED
|
@@ -57,14 +57,15 @@ class Publish {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// 发布代码并设置tags,触发发布,飞书提醒
|
|
60
|
-
pushCodeAndTags([condition.type])
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
36
|
+
return false;
|
|
37
37
|
}
|
|
38
38
|
return true
|
|
39
39
|
}
|