(
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,
)
| 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)); |
no test coverage detected
searching dependent graphs…