Nx
Enterprise
Nx
fix(js): trust exit code for pnpm >= 11 in release-publish executor pnpm 11 reimplemented `pnpm publish` natively (pnpm/pnpm#10591), and the new implementation accepts `--json` but writes nothing to stdout on success. As a result, `extractNpmPublishJsonData` always returns `{ jsonData: null }` and the executor incorrectly reports a successful publish as failed. Combined with `--nx-bail=true`, this silently aborts the rest of a release: tarballs reach the registry, but Nx marks the task failed and skips the remaining packages. Until pnpm restores `--json` stdout output (tracked at pnpm/pnpm#11476), short-circuit on `pm === 'pnpm' && major >= 11` and trust the exit code, mirroring the existing `pm === 'bun'` branch. `execSync` already throws on non-zero exit, so reaching the new branch means the publish succeeded. Refs: nrwl/nx#35575 Refs: pnpm/pnpm#11476 Refs: pnpm/pnpm#10591 (official workaround: `pnpm pack && npm publish *.tgz`) Amp-Thread-ID: https://ampcode.com/threads/T-019df90f-8f75-763f-b528-4602e870a972 Co-authored-by: Amp <amp@ampcode.com>
nx-cloud record -- pnpm nx-cloud conformance:check
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
1 run failed
nx-cloud record -- pnpm nx-cloud conformance:check
Click to copy
Linux
4 CPU cores
3992234c
35580