Skip to content

Commit bde8a21

Browse files
authored
fix(release): ensure git push option is always applied (#29596)
1 parent 6181592 commit bde8a21

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
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)