Skip to content

release: root release command is missing --git-push and --git-remote available in sub-commands #30551

@Hotell

Description

@Hotell

Current Behavior

#29954 introduced support for git-push and git-origin to cover scenarios of auto pushing changes to source

yarn nx release --skip-publish --verbose --git-push

results in

Unknown argument: gitPush
error Command failed with exit code 1.

Expected Behavior

root release command should support same git args as sub-commands when user want's to use only nx release to trigger version/changelog/publish in 1 command.

GitHub Repo

microsoft/fluentui-contrib#281

Steps to Reproduce

  1. clone and checkout
  2. yarn
  3. yarn nx release --skip-publish --verbose --git-push -d

Nx Report

Node           : 20.18.3
OS             : darwin-arm64
Native Target  : aarch64-macos
yarn           : 1.23.34

nx                     : 20.6.4
@nx/js                 : 20.6.4
@nx/jest               : 20.6.4
@nx/eslint             : 20.6.4
@nx/workspace          : 20.6.4
@nx/cypress            : 20.6.4
@nx/devkit             : 20.6.4
@nx/eslint-plugin      : 20.6.4
@nx/module-federation  : 20.6.4
@nx/playwright         : 20.6.4
@nx/plugin             : 20.6.4
@nx/react              : 20.6.4
@nx/storybook          : 20.6.4
@nx/web                : 20.6.4
@nx/webpack            : 20.6.4
typescript             : 5.7.3
---------------------------------------
Local workspace plugins:
         @fluentui-contrib/nx-plugin

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions