Skip to content

Commit 3737d80

Browse files
thdkFrozenPandaz
authored andcommitted
fix(release): ensure git push option is always applied (#29596)
(cherry picked from commit bde8a21)
1 parent 4667cd6 commit 3737d80

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/nx/src/command-line/release/version.ts

+9
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,15 @@ export function createAPI(overrideReleaseConfig: NxReleaseConfiguration) {
547547
}
548548
}
549549

550+
if (args.gitPush ?? nxReleaseConfig.version.git.push) {
551+
output.logSingleLine(`Pushing to git remote "${args.gitRemote}"`);
552+
await gitPush({
553+
gitRemote: args.gitRemote,
554+
dryRun: args.dryRun,
555+
verbose: args.verbose,
556+
});
557+
}
558+
550559
return {
551560
workspaceVersion,
552561
projectsVersionData: versionData,

0 commit comments

Comments
 (0)