Skip to content

nx release --dry-run does not test nx release publish with a dry run #30981

Open
@Saadnajmi

Description

@Saadnajmi

Current Behavior

If I run nx release currently, it will skip running the publish phase with a dry run. This is despite code suggesting running nx release publish with a dry run is possible:

const isDryRun = process.env.NX_DRY_RUN === 'true' || options.dryRun || false;

Expected Behavior

Running nx release --dry-run will also run nx release publish as a dry run.

GitHub Repo

https://github.com/microsoft/react-native-macos/blob/5c909b476db5b27dc5f86edb1c6cff5c69c31c4e/.ado/templates/npm-publish-steps.yml

Steps to Reproduce

  1. Run nx release --dry-run
  2. Observe output skips the publish phase`

Nx Report

sanajmi@Mac react-native-macos % yarn nx report

 NX   Report complete - copy this into the issue template

Node           : 23.6.1
OS             : darwin-arm64
Native Target  : aarch64-macos
yarn           : 4.5.1

nx             : 20.0.7
@nx/js         : 20.0.7
@nx/workspace  : 20.0.7
@nx/devkit     : 20.0.7
typescript     : 5.0.4
---------------------------------------
Local workspace plugins:
         @react-native-mac/nx-release-version

Failure Logs

Package Manager Version

No response

Operating System

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

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions