Files
openclaw/scripts/plugin-npm-release-plan.ts
Onur Solmaz d41c9ad4cb Release: add plugin npm publish workflow (#47678)
* Release: add plugin npm publish workflow

* Release: make plugin publish scope explicit
2026-03-18 13:44:23 +01:00

19 lines
657 B
JavaScript

#!/usr/bin/env -S node --import tsx
import { pathToFileURL } from "node:url";
import { collectPluginReleasePlan, parsePluginReleaseArgs } from "./lib/plugin-npm-release.ts";
export function collectPluginNpmReleasePlan(argv: string[]) {
const { selection, selectionMode, baseRef, headRef } = parsePluginReleaseArgs(argv);
return collectPluginReleasePlan({
selection,
selectionMode,
gitRange: baseRef && headRef ? { baseRef, headRef } : undefined,
});
}
if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) {
const plan = collectPluginNpmReleasePlan(process.argv.slice(2));
console.log(JSON.stringify(plan, null, 2));
}