Skip to content

nx release create empty tags for unchanged repo with "v{version}" tag #33890

@manu-r

Description

@manu-r

Current Behavior

Running nx release with the following config leads to fatal error:

    "version": {
      "conventionalCommits": true,
      "logUnchangedProjects": false
    },
    "releaseTag": {
      "pattern": "v{version}",
      "requireSemver": true,
      "preferDockerVersion": false
    },
    "projectsRelationship": "independent"

Image

Expected Behavior

nx release should skip the release when there is no new version found when using preferDockerVersion: false

GitHub Repo

No response

Steps to Reproduce

  1. Use the provided config
  2. Run nx release without any changes
  3. nx will try to create tag with v{version} and fails

Nx Report

Node           : 24.11.0
OS             : linux-x64
Native Target  : x86_64-linux
pnpm           : 10.26.0

nx                     : 22.2.4
@nx/js                 : 22.2.4
@nx/jest               : 22.2.4
@nx/eslint             : 22.2.4
@nx/workspace          : 22.2.4
@nx/devkit             : 22.2.4
@nx/esbuild            : 22.2.4
@nx/eslint-plugin      : 22.2.4
@nx/module-federation  : 22.2.4
@nx/nest               : 22.2.4
@nx/next               : 22.2.4
@nx/node               : 22.2.4
@nx/react              : 22.2.4
@nx/rollup             : 22.2.4
@nx/vite               : 22.2.4
@nx/vitest             : 22.2.4
@nx/web                : 22.2.4
@nx/webpack            : 22.2.4
@nx/docker             : 22.2.4
typescript             : 5.9.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/eslint/plugin
@nx/next/plugin
@nx/webpack/plugin
@nx/docker

Failure Logs

Package Manager Version

No response

Operating System

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

Additional Information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions