- Notifications
You must be signed in to change notification settings - Fork2.6k
Description
Current Behavior
In my mono repository I have an electron app which i build on all three platforms before then creating a release with nx release. To make sure that all three builds have the correct version applied I usenx release version in each build job. Then I want to use thenx release to create a github release and actually commit the version + changelog.
Unfortunately this is not possible because to configure the commit message i have to use the "release.git" config in my nx.json but then thenx release version command fails because of it:
The "release.git" property in nx.json may not be used with the "nx release version" subcommand or programmatic API. Instead, configure git options for subcommands directly with "release.version.git" and "release.changelog.git".This limitation does not allow using both the sub commands and the main command independently and I wonder why this limitation was ever set in the first place...
Expected Behavior
Allow using both sub and main release commands with same nx.json config.
GitHub Repo
No response
Steps to Reproduce
- See above
Nx Report
NX Reportcomplete - copy this into the issue templateNode: 22.20.0OS: win32-x64Native Target: x86_64-windowsnpm: 10.9.3nx: 21.6.2@nx/js: 21.6.2@nx/eslint: 21.6.2@nx/workspace: 21.6.2@nx/devkit: 21.6.2@nx/eslint-plugin: 21.6.2@nx/module-federation: 21.6.2@nx/react: 21.6.2@nx/rollup: 21.6.2@nx/vite: 21.6.2@nx/web: 21.6.2typescript: 5.9.2---------------------------------------Registered Plugins:@nx/eslint/plugin@nx/vite/plugin---------------------------------------
Failure Logs
NX The"release.git" propertyin nx.json may not be used with the"nx release version" subcommand or programmatic API. Instead, configure git optionsfor subcommands directly with"release.version.git" and"release.changelog.git".
Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
I need to configure the commit message to include "[no ci]" to not trigger another workflow run