cloudcc-cli 0.8.3 → 0.8.4
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 +5 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/utils/pushCode.js
CHANGED
|
@@ -81,10 +81,10 @@ function setTag(types, versions) {
|
|
|
81
81
|
|
|
82
82
|
// 添加tag
|
|
83
83
|
versions.map((version) => {
|
|
84
|
-
exec("git tag " + version)
|
|
84
|
+
exec("git tag " + version + " -f")
|
|
85
85
|
})
|
|
86
86
|
types.map((type) => {
|
|
87
|
-
exec("git tag " + type)
|
|
87
|
+
exec("git tag " + type + " -f")
|
|
88
88
|
})
|
|
89
89
|
|
|
90
90
|
// 推送tag
|
|
@@ -124,6 +124,9 @@ function getNewVersionName(types) {
|
|
|
124
124
|
*/
|
|
125
125
|
function pushCodeAndTags(types = []) {
|
|
126
126
|
let versions = getNewVersionName(types);
|
|
127
|
+
console.log();
|
|
128
|
+
console.log(chalk.green('待发布版本:' + versions));
|
|
129
|
+
console.log();
|
|
127
130
|
return push(versions[0]) && setTag(types, versions)
|
|
128
131
|
}
|
|
129
132
|
module.exports = { pushCodeAndTags, push, getNewVersionName, setTag }
|