mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-08 10:02:56 +08:00
* feat(release): publish plugins on extended-stable * feat(plugins): align extended-stable with core * docs: explain extended-stable plugin alignment * fix(release): make plugin convergence recoverable * fix(plugins): preserve extended-stable fallback intent * fix(release): keep plugin tag mutation credential-isolated
22 lines
770 B
JavaScript
22 lines
770 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";
|
|
|
|
export 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 = collectPluginNpmReleasePlan(process.argv.slice(2));
|
|
console.log(JSON.stringify(plan, null, 2));
|
|
}
|