We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Operation.update()
push
1 parent 10cd9ed commit a6fa150Copy full SHA for a6fa150
1 file changed
src/git.ts
@@ -71,14 +71,16 @@ export async function gitTag(operation: Operation): Promise<Operation> {
71
* Pushes the Git commit and tag, if the `push` option is enabled.
72
*/
73
export async function gitPush(operation: Operation): Promise<Operation> {
74
- if (operation.options.push) {
75
- // Push the commit
76
- await ezSpawn.async("git", "push");
77
-
78
- if (operation.options.tag) {
79
- // Push the tag
80
- await ezSpawn.async("git", ["push", "--tags"]);
81
- }
+ if (!operation.options.push) {
+ return operation;
+ }
+
+ // Push the commit
+ await ezSpawn.async("git", "push");
+ if (operation.options.tag) {
82
+ // Push the tag
83
+ await ezSpawn.async("git", ["push", "--tags"]);
84
}
85
86
return operation.update({ event: ProgressEvent.GitPush });
0 commit comments