This commit is contained in:
2025-12-14 01:42:59 +00:00
parent 48c4b0c9b2
commit 7bb2f65669
6 changed files with 135 additions and 15 deletions

View File

@@ -231,9 +231,10 @@ export const run = async (argvArg: any) => {
const registries = releaseConfig.getRegistries();
ui.printStep(currentStep, totalSteps, `📦 Publishing to ${registries.length} registr${registries.length === 1 ? 'y' : 'ies'}`, 'in-progress');
const accessLevel = releaseConfig.getAccessLevel();
for (const registry of registries) {
try {
await smartshellInstance.exec(`npm publish --registry=${registry}`);
await smartshellInstance.exec(`npm publish --registry=${registry} --access=${accessLevel}`);
releasedRegistries.push(registry);
} catch (error) {
logger.log('error', `Failed to publish to ${registry}: ${error}`);