Fix the quoting issue in the prerelease script

This commit is contained in:
Aria Minaei 2022-05-19 12:43:31 +02:00
parent e8272862c7
commit c15c88fcec

View file

@ -150,15 +150,17 @@ async function assignVersions(workspacesListObjects, latestCommitHash) {
await Promise.all(
packagesToPublish.map(async (workspaceName) => {
const npmTag = 'insiders'
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]}`}`
}
}
})()