From c15c88fcecd546272091a564c4bdb41f16737c7d Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Thu, 19 May 2022 12:43:31 +0200 Subject: [PATCH] Fix the quoting issue in the prerelease script --- scripts/prerelease.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/prerelease.mjs b/scripts/prerelease.mjs index 1bcc0e2..3c534af 100644 --- a/scripts/prerelease.mjs +++ b/scripts/prerelease.mjs @@ -150,15 +150,17 @@ async function assignVersions(workspacesListObjects, latestCommitHash) { await Promise.all( packagesToPublish.map(async (workspaceName) => { const npmTag = 'insiders' - await $`yarn workspace ${workspaceName} npm publish --access public --tag ${npmTag}` + if (process.env.GITHUB_ACTIONS) { + await $`yarn workspace ${workspaceName} npm publish --access public --tag ${npmTag}` + } }), ) for (const packageName of packagesToPublish) { if (process.env.GITHUB_ACTIONS) { - await $`echo "Published ${packageName}@${assignedVersionByPackageName[packageName]}" >> $GITHUB_STEP_SUMMARY` + await $`echo ${`Published ${packageName}@${assignedVersionByPackageName[packageName]}`} >> $GITHUB_STEP_SUMMARY` } else { - await $`echo "Published ${packageName}@${assignedVersionByPackageName[packageName]}"` + await $`echo ${`Published ${packageName}@${assignedVersionByPackageName[packageName]}`}` } } })()