You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a monorepo with a project graph that has a similar structure to this:
When using nx release if I create a commit that changes @wp-test/test-package-a, currently we get the following console output:
NX Running release version for project: @wp-test/test-package-c
@wp-test/test-package-c 🔍 Reading data for package "@wp-test/test-package-c" from packages/folder-b/folder-c/package-c/package.json
@wp-test/test-package-c 📄 Resolved the current version as 1.1.0 from git tag "@wp-test/test-package-c@1.1.0".
@wp-test/test-package-c 🚫 No changes were detected using git history and the conventional commits standard.
@wp-test/test-package-c 🚫 Skipping versioning "@wp-test/test-package-c" as no changes were detected.
NX Running release version for project: @wp-test/test-package-d
@wp-test/test-package-d 🔍 Reading data for package "@wp-test/test-package-d" from packages/folder-b/folder-c/package-d/package.json
@wp-test/test-package-d 📄 Resolved the current version as 1.1.0 from git tag "@wp-test/test-package-d@1.1.0".
@wp-test/test-package-d 🚫 No changes were detected using git history and the conventional commits standard.
@wp-test/test-package-d 🚫 Skipping versioning "@wp-test/test-package-d" as no changes were detected.
NX Running release version for project: @wp-test/test-package-a
@wp-test/test-package-a 🔍 Reading data for package "@wp-test/test-package-a" from packages/folder-a/package-a/package.json
@wp-test/test-package-a 📄 Resolved the current version as 1.1.0 from git tag "@wp-test/test-package-a@1.1.0".
@wp-test/test-package-a 📄 Resolved the specifier as "patch" using git history and the conventional commits standard.
@wp-test/test-package-a ✍️ New version 1.1.1 written to packages/folder-a/package-a/package.json
NX Running release version for project: @wp-test/test-package-b
@wp-test/test-package-b 🔍 Reading data for package "@wp-test/test-package-b" from packages/folder-b/package-b/package.json
@wp-test/test-package-b 📄 Resolved the current version as 1.1.0 from git tag "@wp-test/test-package-b@1.1.0".
@wp-test/test-package-b 🚫 No changes were detected using git history and the conventional commits standard.
@wp-test/test-package-b 🚫 Skipping versioning "@wp-test/test-package-b" as no changes were detected.
In this scenario the only package that gets updated is package-a, despite the fact that I have version.generatorOptions.updateDependents = 'auto'
Expected Behavior
I would expect that all packages that depend on package-a would also get updated as part of this release.
GitHub Repo
No response
Steps to Reproduce
Create a monorepo with a dependency structure matching this graph:
Current Behavior
I have a monorepo with a project graph that has a similar structure to this:
When using nx release if I create a commit that changes @wp-test/test-package-a, currently we get the following console output:
In this scenario the only package that gets updated is package-a, despite the fact that I have version.generatorOptions.updateDependents = 'auto'
Expected Behavior
I would expect that all packages that depend on package-a would also get updated as part of this release.
GitHub Repo
No response
Steps to Reproduce
The important part here is that gitCommit is false.
Nx Report
Failure Logs
No response
Package Manager Version
yarn 1.22.21
Operating System
Additional Information
After digging around the code I belive the issue lies here:
nx/packages/js/src/generators/release-version/release-version.ts
Line 377 in 95a6e68
Because we are passing gitCommit false to version (we manage versions entierly using tags) when it looks through your commits for 'relevent' commits
nx/packages/nx/src/command-line/release/utils/shared.ts
Line 309 in 95a6e68
version.generatorOptions.updateDependents = 'auto' that it would also update package-a's dependent packages rather than just the package itself.
The commit to package-a is 'relevent' to b,c and d because they depend on package-a
The text was updated successfully, but these errors were encountered: