Skip to content

nx release version does not propagate changes to release groups with "projectsRelationship": "independent" #31724

@mpsanchis

Description

@mpsanchis

Current Behavior

In the following case:

G1 ({ "projectsRelationship": "independent" }):
- A
  -> depends on C
- B
G2 ({ "projectsRelationship": "fixed" }):
- C
- D

I would expect that, if C or D are modified, then A is bumped. Currently, A and B don't see any differences, and log something like:

A 🚫 No changes were detected using git history and the conventional commits standard

Expected Behavior

Changes are propagated to other projects/groups, no matter what's their projectsRelationship value

GitHub Repo

https://github.com/mpsanchis/nx-21-release

Steps to Reproduce

  1. Clone repo in https://github.com/mpsanchis/nx-21-release
  2. git checkout only-commons-syncd
  3. npm i
  4. npx nx release version

Note that the repository has several branches with different scenarios. This one corresponds to the following sketch:
Image

Nx Report

NX   Report complete - copy this into the issue template

Node           : 18.20.8
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.8.2

nx             : 21.2.0-beta.3
@nx/js         : 21.2.0-beta.3
@nx/workspace  : 21.2.0-beta.3
@nx/devkit     : 21.2.0-beta.3
---------------------------------------
Cache Usage: 0.00 B / 92.64 GB

Failure Logs

Package Manager Version

npm 10.8.2

Operating System

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

Additional Information

Opening issue in case it helps you guys to track. An MR with failing tests will follow.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions