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 CHANGED
@@ -1,3 +1,10 @@
1
+ # ReleaseV0.8.8
2
+ #### 发布日期:2021-11-26
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 优化
6
+ * 优化获取tag索引
7
+
1
8
  # ReleaseV0.8.7
2
9
  #### 发布日期:2021-11-26
3
10
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "0.8.7",
3
+ "version": "0.8.8",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
package/utils/pushCode.js CHANGED
@@ -79,18 +79,17 @@ function setTag(types, versions) {
79
79
  }
80
80
  })
81
81
 
82
- // 添加tag,必须先设置不带版本号的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 origin --tags")
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")[0]
110
+ version = version.split("\n")[1]
112
111
  console.log("version 1", version);
113
112
  // 取版本号
114
113
  version = version.split("-V")[1]