openclaw/scripts/plugin-npm-release-plan.ts
Peter Steinberger a162944f54
improve(release): prepare publication artifacts during validation (#135639)
* 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
2026-09-01 18:41:09 -07:00

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));
}