Skip to content

Commit

Permalink
fix(release): ensure git push option is always applied (#29596)
Browse files Browse the repository at this point in the history
(cherry picked from commit bde8a21)
  • Loading branch information
thdk authored and FrozenPandaz committed Jan 15, 2025
1 parent 4667cd6 commit 3737d80
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/nx/src/command-line/release/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,15 @@ export function createAPI(overrideReleaseConfig: NxReleaseConfiguration) {
}
}

if (args.gitPush ?? nxReleaseConfig.version.git.push) {
output.logSingleLine(`Pushing to git remote "${args.gitRemote}"`);
await gitPush({
gitRemote: args.gitRemote,
dryRun: args.dryRun,
verbose: args.verbose,
});
}

return {
workspaceVersion,
projectsVersionData: versionData,
Expand Down

0 comments on commit 3737d80

Please sign in to comment.