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(
|
await Promise.all(
|
||||||
packagesToPublish.map(async (workspaceName) => {
|
packagesToPublish.map(async (workspaceName) => {
|
||||||
const npmTag = 'insiders'
|
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) {
|
for (const packageName of packagesToPublish) {
|
||||||
if (process.env.GITHUB_ACTIONS) {
|
if (process.env.GITHUB_ACTIONS) {
|
||||||
await $`echo "Published ${packageName}@${assignedVersionByPackageName[packageName]}" >> $GITHUB_STEP_SUMMARY`
|
await $`echo ${`Published ${packageName}@${assignedVersionByPackageName[packageName]}`} >> $GITHUB_STEP_SUMMARY`
|
||||||
} else {
|
} else {
|
||||||
await $`echo "Published ${packageName}@${assignedVersionByPackageName[packageName]}"`
|
await $`echo ${`Published ${packageName}@${assignedVersionByPackageName[packageName]}`}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
|
|
Loading…
Reference in a new issue