cloudcc-cli 0.9.0 → 0.9.1
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/test/test.js +6 -4
- package/utils/pushCode.js +6 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/test/test.js
CHANGED
package/utils/pushCode.js
CHANGED
|
@@ -106,8 +106,12 @@ function getNewVersionName(types) {
|
|
|
106
106
|
let version = exec(`git tag --sort=-committerdate`)
|
|
107
107
|
version = version.toString("utf8").trim();
|
|
108
108
|
if (version) {
|
|
109
|
-
//
|
|
110
|
-
|
|
109
|
+
// 使用换行分隔下
|
|
110
|
+
let versions = version.split("\n");
|
|
111
|
+
// 取出第一个包含-V的版本号
|
|
112
|
+
version = versions.find((item) => {
|
|
113
|
+
return item.includes("-V");
|
|
114
|
+
})
|
|
111
115
|
console.log("version 1", version);
|
|
112
116
|
// 取版本号
|
|
113
117
|
version = version.split("-V")[1]
|