MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / autoPublish

Function autoPublish

packages/bumpy/src/commands/ci.ts:638–656  ·  view source on GitHub ↗

* "Auto-publish" mode: skip the Version Packages PR and ship version+publish in one run. * * The only thing forfeited vs. the default flow is the preview/review gate on version * bumps. Credentials are NOT a differentiator — a single-job non-auto-publish workflow * also carries both PR-write and

(rootDir: string, config: BumpyConfig, plan: ReleasePlan, tag?: string)

Source from the content-addressed store, hash-verified

636 const msg =
637 bumpFiles.length === 0
638 ? 'No pending bump files — checking for unpublished packages...'
639 : 'Bump files found but no packages would be released — checking for unpublished packages...';
640 log.info(msg);
641 const recoveredBumpFiles = recoverDeletedBumpFiles(rootDir);
642 const { publishCommand } = await import('./publish.ts');
643 await publishCommand(rootDir, { tag: opts.tag, recoveredBumpFiles });
644 return;
645 }
646
647 // detectedMode === 'version-pr' — plan is non-null with releases
648 if (opts.autoPublish) {
649 await autoPublish(rootDir, config, plan!, opts.tag);
650 } else {
651 const packageDirs = new Map([...packages.values()].map((p) => [p.name, p.relativeDir]));
652 await createVersionPr(rootDir, plan!, config, packageDirs, opts.branch);
653 }
654}
655
656// ---- auto-publish mode ----
657
658/**
659 * "Auto-publish" mode: skip the Version Packages PR and ship version+publish in one run.

Callers 1

ciReleaseCommandFunction · 0.85

Calls 5

runArgsFunction · 0.90
tryRunArgsFunction · 0.90
resolveCommitMessageFunction · 0.90
versionCommandFunction · 0.85
publishCommandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…