fix(release): ensure git push option is always applied (#29596)

This commit is contained in:
Thomas Dekiere 2025-01-14 13:41:20 +01:00 committed by GitHub
parent 61815929d7
commit bde8a217f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,