cloudcc-cli 1.2.8 → 1.2.9
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 +8 -0
- package/package.json +1 -1
- package/src/builderPlugin.js +1 -1
- package/src/publishProject.js +3 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/src/builderPlugin.js
CHANGED
package/src/publishProject.js
CHANGED
|
@@ -134,7 +134,7 @@ class Publish {
|
|
|
134
134
|
|
|
135
135
|
try {
|
|
136
136
|
// 7:写入版本信息
|
|
137
|
-
this.writeVersion(version);
|
|
137
|
+
this.writeVersion(version,condition.type);
|
|
138
138
|
} catch (error) {
|
|
139
139
|
console.log(chalk.red("版本信息写入异常:" + error))
|
|
140
140
|
}
|
|
@@ -186,7 +186,7 @@ class Publish {
|
|
|
186
186
|
* 将版本信息写入文件
|
|
187
187
|
* @param {版本信息} version
|
|
188
188
|
*/
|
|
189
|
-
writeVersion(version) {
|
|
189
|
+
writeVersion(version,type) {
|
|
190
190
|
try {
|
|
191
191
|
// 获得分支信息
|
|
192
192
|
let branch = execSync('git rev-parse --abbrev-ref HEAD');
|
|
@@ -215,6 +215,7 @@ class Publish {
|
|
|
215
215
|
<div>${projectConfig.name}</div>
|
|
216
216
|
<div style="margin-left:48px">
|
|
217
217
|
<div>分支:${branch}</div>
|
|
218
|
+
<div>标签:${type}</div>
|
|
218
219
|
<div>版本号:${version}</div>
|
|
219
220
|
<div>提交Hash:${gitCommitVersion}</div>
|
|
220
221
|
<div>发布时间:${dayjs().format('YYYY-MM-DD HH:mm:ss')}</div>
|