cloudcc-cli 0.8.7 → 0.8.8
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/utils/pushCode.js +7 -8
package/README.md
CHANGED
package/package.json
CHANGED
package/utils/pushCode.js
CHANGED
|
@@ -79,18 +79,17 @@ function setTag(types, versions) {
|
|
|
79
79
|
}
|
|
80
80
|
})
|
|
81
81
|
|
|
82
|
-
// 添加tag
|
|
83
|
-
types.map((type) => {
|
|
84
|
-
exec("git tag " + type + " -f")
|
|
85
|
-
})
|
|
86
|
-
|
|
82
|
+
// 添加tag
|
|
87
83
|
versions.map((version) => {
|
|
88
84
|
exec("git tag " + version + " -f")
|
|
89
85
|
})
|
|
90
86
|
|
|
91
|
-
|
|
87
|
+
types.map((type) => {
|
|
88
|
+
exec("git tag " + type + " -f")
|
|
89
|
+
})
|
|
92
90
|
// 推送tag
|
|
93
|
-
exec("git push
|
|
91
|
+
exec("git push --tags")
|
|
92
|
+
|
|
94
93
|
console.log(chalk.green('Tag设置成功!'));
|
|
95
94
|
console.log();
|
|
96
95
|
return true;
|
|
@@ -108,7 +107,7 @@ function getNewVersionName(types) {
|
|
|
108
107
|
version = version.toString("utf8").trim();
|
|
109
108
|
if (version) {
|
|
110
109
|
// 获取第一个版本号
|
|
111
|
-
version = version.split("\n")[
|
|
110
|
+
version = version.split("\n")[1]
|
|
112
111
|
console.log("version 1", version);
|
|
113
112
|
// 取版本号
|
|
114
113
|
version = version.split("-V")[1]
|