Skip to content

Commit

Permalink
do not try to publish root monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 28, 2023
1 parent 8fb4d0e commit 493d9ad
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions scripts/version.mts
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,15 @@ const publish = (names: string[], pre: boolean = false) => {
const pn = names.filter(n => !manifests[n].private)
// always publish tap last
const noTap = pn.filter(n => n !== 'tap')
npm(
{ stdio: 'inherit' },
'publish',
'--access=public',
`--tag=${pre ? 'pre' : 'latest'}`,
...noTap.map(n => `-w=${n}`)
)
if (noTap.length) {
npm(
{ stdio: 'inherit' },
'publish',
'--access=public',
`--tag=${pre ? 'pre' : 'latest'}`,
...noTap.map(n => `-w=${n}`)
)
}
if (pn.includes('tap')) {
npm(
{ stdio: 'inherit' },
Expand All @@ -425,12 +427,7 @@ const publish = (names: string[], pre: boolean = false) => {
'-w=tap'
)
const tag = `tap@${manifests.tap.version}`
const args = [
'release',
'create',
tag,
'--verify-tag',
]
const args = ['release', 'create', tag, '--verify-tag']
if (pre) args.push('-p')
gh(...args)
}
Expand Down

0 comments on commit 493d9ad

Please sign in to comment.