nx icon indicating copy to clipboard operation
nx copied to clipboard

unable to pass `--preid` to command `nx release preminor`

Open ju-Skinner opened this issue 1 year ago • 3 comments

Current Behavior

➜ npx nx release preminor --preid mercury --dry-run
nx release

Orchestrate versioning and publishing of applications and libraries.

Commands:
  nx release [specifier]          Create a version and release for the workspace, generate a changelog, and optionally publish the packages.                                                                                          [default]
  nx release version [specifier]  Create a version and release for one or more applications and libraries.                                                                                                                         [aliases: v]
  nx release changelog [version]  Generate a changelog for one or more projects, and optionally push to Github.                                                                                                                    [aliases: c]
  nx release publish              Publish a versioned project to a registry.                                                                                                                                                       [aliases: p]
  nx release plan [bump]          Create a version plan file to specify the desired semver bump for one or more projects or groups, as well as the relevant changelog entry.                                                      [aliases: pl]
  nx release plan:check           Ensure that all touched projects have an applicable version plan created for them.

Positionals:
  specifier  Exact version or semver keyword to apply to the selected release group.                                                                                                                                                   [string]

Options:
      --help             Show help                                                                                                                                                                                                    [boolean]
      --version          Show version number                                                                                                                                                                                          [boolean]
      --verbose          Prints additional information about the commands (e.g., stack traces).                                                                                                                                       [boolean]
  -g, --groups, --group  One or more release groups to target with the current command.                                                                                                                                                [string]
  -p, --projects         Projects to run. (comma/space delimited project names and/or patterns).                                                                                                                                       [string]
  -d, --dry-run          Preview the changes without updating files/creating releases.                                                                                                                               [boolean] [default: false]
      --printConfig      Print the resolved nx release configuration that would be used for the current command and then exit.                                                                                                         [string]
      --first-release    Indicates that this is the first release for the selected release group. If the current version cannot be determined as usual, the version on disk will be used as a fallback. This is useful when using git or the
                         registry to determine the current version of packages, since those sources are only available after the first release. Also indicates that changelog generation should not assume a previous git tag exists and that
                         publishing should not check for the existence of the package before running.                                                                                                                                 [boolean]
  -y, --yes              Automatically answer yes to the confirmation prompt for publishing.                                                                                                                                          [boolean]
      --skip-publish     Skip publishing by automatically answering no to the confirmation prompt for publishing.                                                                                                                     [boolean]

Unknown argument: preid

Expected Behavior

I would expect to be able to pass the flag --preid to the nx release command since it allows the specifier to be passed.

GitHub Repo

No response

Steps to Reproduce

  1. run nx release preminor --preid

Nx Report

Node           : 22.7.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.8.3

nx             : 19.7.1
lerna          : 8.1.8
@nx/js         : 19.7.1
@nx/workspace  : 19.7.1
@nx/devkit     : 19.7.1
@nrwl/tao      : 19.7.1
typescript     : 5.6.2

Failure Logs

No response

Package Manager Version

No response

Operating System

  • [X] macOS
  • [ ] Linux
  • [ ] Windows
  • [ ] Other (Please specify)

Additional Information

No response

ju-Skinner avatar Sep 11 '24 14:09 ju-Skinner

same error

klagrida avatar Sep 13 '24 13:09 klagrida

any updates on this?

ju-Skinner avatar Sep 20 '24 15:09 ju-Skinner

Hello, I'd like to see if there is any estimate of when this bug/feature may be addressed.

ju-Skinner avatar Oct 18 '24 14:10 ju-Skinner

I'm facing the same issue. It would be really helpful to have this feature.

wsuwt avatar Dec 16 '24 03:12 wsuwt

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

github-actions[bot] avatar Mar 20 '25 00:03 github-actions[bot]