Fix the quoting issue in the prerelease script
This commit is contained in:
parent
e8272862c7
commit
c15c88fcec
1 changed files with 5 additions and 3 deletions
|
@ -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]}`}`
|
||||
}
|
||||
}
|
||||
})()
|
||||
|
|
Loading…
Reference in a new issue