zarro 1.128.0 → 1.129.0
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.
|
@@ -25,7 +25,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
return this.emit("end");
|
|
26
26
|
}
|
|
27
27
|
try {
|
|
28
|
-
|
|
28
|
+
const shouldNotTag = versionInfo.isPreRelease && opts.ignorePreRelease;
|
|
29
|
+
if (shouldNotTag) {
|
|
29
30
|
console.log(`Not tagging: this is a pre-release. Set ignorePreRelease: false on options to tag pre-releases.`);
|
|
30
31
|
}
|
|
31
32
|
else {
|
|
@@ -35,7 +36,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
if (opts.push) {
|
|
38
|
-
|
|
39
|
+
if (!shouldNotTag) {
|
|
40
|
+
await gitPushTags();
|
|
41
|
+
}
|
|
39
42
|
await gitPush();
|
|
40
43
|
gutil.log(gutil.colors.green("-> all commits and tags pushed!"));
|
|
41
44
|
}
|
|
@@ -25,14 +25,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
return this.emit("end");
|
|
26
26
|
}
|
|
27
27
|
try {
|
|
28
|
-
|
|
28
|
+
const shouldNotTag = versionInfo.isPreRelease && options.ignorePreRelease;
|
|
29
|
+
if (shouldNotTag) {
|
|
29
30
|
console.log(`Not tagging: this is a pre-release. Set ignorePreRelease: false on options to tag pre-releases.`);
|
|
30
31
|
}
|
|
31
32
|
else {
|
|
32
33
|
await gitTag(`v${version}`, `:bookmark: ${version}`);
|
|
33
34
|
}
|
|
34
35
|
if (options.push) {
|
|
35
|
-
|
|
36
|
+
if (!shouldNotTag) {
|
|
37
|
+
await gitPushTags();
|
|
38
|
+
}
|
|
36
39
|
await gitPush();
|
|
37
40
|
gutil.log(gutil.colors.green("-> all commits and tags pushed!"));
|
|
38
41
|
}
|