mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
* perf(release): prepare publication artifacts during validation * fix(release): scope npm registry environment restoration * test(ci): align release artifact verification fixtures Account for newly tracked artifact tests and internal workflow-only inputs. Keep synthetic runner timing checks independent of unrelated suite budgets. Reuse the catalog-row selector fix already landed in #135597. * fix(release): preserve correction identity across prepared artifacts
21 lines
769 B
JavaScript
21 lines
769 B
JavaScript
#!/usr/bin/env -S node --import tsx
|
|
// Plugin Npm Release Plan script supports OpenClaw repository automation.
|
|
|
|
import { pathToFileURL } from "node:url";
|
|
import { collectPluginReleasePlan, parsePluginNpmReleaseArgs } from "./lib/plugin-npm-release.ts";
|
|
|
|
function collectPluginNpmReleasePlan(argv: string[]) {
|
|
const { selection, selectionMode, npmDistTag, baseRef, headRef } =
|
|
parsePluginNpmReleaseArgs(argv);
|
|
return collectPluginReleasePlan({
|
|
selection,
|
|
selectionMode,
|
|
npmDistTag,
|
|
gitRange: baseRef && headRef ? { baseRef, headRef } : undefined,
|
|
});
|
|
}
|
|
|
|
if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) {
|
|
const plan = await collectPluginNpmReleasePlan(process.argv.slice(2));
|
|
console.log(JSON.stringify(plan, null, 2));
|
|
}
|