mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-12 10:11:42 -04:00
5
.changeset/funny-goats-march.md
Normal file
5
.changeset/funny-goats-march.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-publishing": patch
|
||||
---
|
||||
|
||||
`pnpm publish -r` should not publish packages with `pnpm-temp` distribution tag.
|
||||
@@ -82,6 +82,7 @@ export default async function (
|
||||
appendedArgs.push('--dry-run')
|
||||
}
|
||||
const chunks = sortPackages(opts.selectedProjectsGraph)
|
||||
const tag = opts.tag ?? 'latest'
|
||||
for (const chunk of chunks) {
|
||||
for (const pkgDir of chunk) {
|
||||
if (!publishedPkgDirs.has(pkgDir)) continue
|
||||
@@ -93,7 +94,7 @@ export default async function (
|
||||
'publish',
|
||||
pkg.dir,
|
||||
'--tag',
|
||||
'pnpm-temp',
|
||||
tag,
|
||||
'--registry',
|
||||
pickRegistryForPackage(opts.registries, pkg.manifest.name!),
|
||||
...appendedArgs,
|
||||
@@ -104,17 +105,6 @@ export default async function (
|
||||
}, [pkg.dir])
|
||||
}
|
||||
}
|
||||
const tag = opts.tag || 'latest'
|
||||
for (const pkg of pkgsToPublish) {
|
||||
runNpm(opts.npmPath, [
|
||||
'dist-tag',
|
||||
'add',
|
||||
`${pkg.manifest.name}@${pkg.manifest.version}`,
|
||||
tag,
|
||||
'--registry',
|
||||
pickRegistryForPackage(opts.registries, pkg.manifest.name!),
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
async function isAlreadyPublished (
|
||||
|
||||
Reference in New Issue
Block a user