Skip to content

nx affected -t nx-release-publish does not run version/changelog presteps. #30670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 of 4 tasks
h3adache opened this issue Apr 10, 2025 · 0 comments
Open
2 of 4 tasks

Comments

@h3adache
Copy link

Current Behavior

Running

pnpm nx affected -t nx-release-publish

does not run version and changelog presteps.

This leaves any workspace:* dependencies untouched and fails to publish.

Running

pnpm nx release

will properly run the presteps.

I've even tried setting preserveLocalDependencyProtocols: false to no avail.

Expected Behavior

pnpm nx affected -t nx-release-publish has parity with pnpm nx release

GitHub Repo

No response

Steps to Reproduce

  1. init a new nx monorepo with pnpm package manager npx create-nx-workspace --pm pnpm
  2. generate publishable lib pnpm nx g @nx/react:lib packages/my-lib --buildable --publishable
  3. generate 2nd publishable lib pnpm nx g @nx/react:lib packages/my-lib2 --buildable --publishable
  4. add a dependency on my-lib2 in my-lib1 (I just use @nx/dependency-checks for this)
  5. run pnpm nx affected -t nx-release-publish
  6. observe difference with pnpm nx release (but that cannot target affected)

Nx Report

Node           : 22.11.0
OS             : darwin-arm64
Native Target  : aarch64-macos
pnpm           : 9.12.1

nx                     : 20.5.0
@nx/js                 : 20.5.0
@nx/jest               : 20.5.0
@nx/eslint             : 20.5.0
@nx/workspace          : 20.5.0
@nx/cypress            : 20.5.0
@nx/devkit             : 20.5.0
@nx/esbuild            : 20.5.0
@nx/eslint-plugin      : 20.5.0
@nx/module-federation  : 20.5.0
@nx/next               : 20.5.0
@nx/node               : 20.5.0
@nx/playwright         : 20.5.0
@nx/react              : 20.5.0
@nx/rspack             : 20.5.0
@nx/storybook          : 20.5.0
@nx/vite               : 20.5.0
@nx/web                : 20.5.0
@nx/webpack            : 20.5.0
typescript             : 5.8.2

Failure Logs

Package Manager Version

No response

Operating System

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

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant