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

Function formatPlanRelease

packages/bumpy/src/commands/ci.ts:478–503  ·  view source on GitHub ↗
(
  r: {
    name: string;
    type: string;
    oldVersion: string;
    newVersion: string;
    bumpFiles: string[];
    isDependencyBump: boolean;
    isCascadeBump: boolean;
  },
  packages: Map<string, { relativeDir: string; private: boolean; bumpy?: PackageConfig }>,
  config: BumpyConfig,
)

Source from the content-addressed store, hash-verified

476
477 if (unpublished.length > 0) {
478 output = {
479 mode: 'publish',
480 bumpFiles: [],
481 releases: unpublished.map((r) => formatPlanRelease(r, packages, config)),
482 packageNames: unpublished.map((r) => r.name),
483 };
484 } else {
485 output = {
486 mode: 'nothing',
487 bumpFiles: [],
488 releases: [],
489 packageNames: [],
490 };
491 }
492 }
493
494 // JSON to stdout
495 const json = JSON.stringify(output, null, 2);
496 console.log(json);
497
498 // Cache for ci release to reuse (avoids duplicate registry lookups)
499 const cachePath = `${rootDir}/${CI_PLAN_CACHE_PATH}`;
500 const cacheDir = cachePath.slice(0, cachePath.lastIndexOf('/'));
501 mkdirSync(cacheDir, { recursive: true });
502 writeFileSync(cachePath, json, 'utf-8');
503
504 // Set GitHub Actions outputs
505 writeGitHubOutput('mode', output.mode);
506 writeGitHubOutput('packages', JSON.stringify(output.packageNames));

Callers 2

ciPlanCommandFunction · 0.85
ciChannelPlanFunction · 0.85

Calls 1

getPublishTargetsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…