From 261b0ff002aa5b49b70f129945f9c27f781b4fcf Mon Sep 17 00:00:00 2001 From: dmcweeney Date: Thu, 23 May 2024 03:30:49 +0100 Subject: [PATCH] fix(release): npm publish error when file path contains spaces (#24750) ## Current Behavior ## Expected Behavior ## Related Issue(s) Fixes #24682 --- .../js/src/executors/release-publish/release-publish.impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/js/src/executors/release-publish/release-publish.impl.ts b/packages/js/src/executors/release-publish/release-publish.impl.ts index 03b75dff9a096..083f8d97769d6 100644 --- a/packages/js/src/executors/release-publish/release-publish.impl.ts +++ b/packages/js/src/executors/release-publish/release-publish.impl.ts @@ -201,7 +201,7 @@ export default async function runExecutor( } const npmPublishCommandSegments = [ - `npm publish ${packageRoot} --json --"${registryConfigKey}=${registry}" --tag=${tag}`, + `npm publish "${packageRoot}" --json --"${registryConfigKey}=${registry}" --tag=${tag}`, ]; if (options.otp) {