* "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)
| 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. |
no test coverage detected
searching dependent graphs…