Skip to content

Commit cb765f1

Browse files
committed
ci(release): require all plugins for core publish
1 parent 4c4e8a2 commit cb765f1

5 files changed

Lines changed: 32 additions & 5 deletions

File tree

‎.github/workflows/openclaw-release-publish.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ jobs:
122122
echo "publish_openclaw_npm=true requires dispatching this workflow from main, release/YYYY.M.D, or a Tideclaw alpha branch for alpha prereleases." >&2
123123
exit 1
124124
fi
125+
if [[ "${PUBLISH_OPENCLAW_NPM}" == "true" && "${PLUGIN_PUBLISH_SCOPE}" != "all-publishable" ]]; then
126+
echo "publish_openclaw_npm=true requires plugin_publish_scope=all-publishable so every publishable official plugin is released with OpenClaw." >&2
127+
exit 1
128+
fi
125129
if [[ "${PLUGIN_PUBLISH_SCOPE}" == "selected" && -z "${PLUGINS}" ]]; then
126130
echo "plugin_publish_scope=selected requires plugins." >&2
127131
exit 1

‎docs/reference/RELEASING.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,12 @@ gh workflow run openclaw-release-publish.yml \
685685
```
686686

687687
Use the lower-level `Plugin NPM Release` and `Plugin ClawHub Release` workflows
688-
only for focused repair or republish work. For a selected plugin repair, pass
689-
`plugin_publish_scope=selected` and `plugins=@openclaw/name` to
690-
`OpenClaw Release Publish`, or dispatch the child workflow directly when the
691-
OpenClaw package must not be published.
688+
only for focused repair or republish work. `OpenClaw Release Publish` rejects
689+
`plugin_publish_scope=selected` when `publish_openclaw_npm=true` so the core
690+
package cannot ship without every publishable official plugin, including
691+
`@openclaw/diffs-language-pack`. For a selected plugin repair, set
692+
`publish_openclaw_npm=false` with `plugin_publish_scope=selected` and
693+
`plugins=@openclaw/name`, or dispatch the child workflow directly.
692694

693695
## NPM workflow inputs
694696

@@ -710,7 +712,7 @@ OpenClaw package must not be published.
710712
required when `publish_openclaw_npm=true`
711713
- `npm_dist_tag`: npm target tag for the OpenClaw package
712714
- `plugin_publish_scope`: defaults to `all-publishable`; use `selected` only
713-
for focused repair work
715+
for focused plugin-only repair work with `publish_openclaw_npm=false`
714716
- `plugins`: comma-separated `@openclaw/*` package names when
715717
`plugin_publish_scope=selected`
716718
- `publish_openclaw_npm`: defaults to `true`; set `false` only when using the

‎scripts/release-candidate-checklist.mjs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ export function parseArgs(argv) {
141141
if (options.pluginPublishScope === "selected" && !options.plugins.trim()) {
142142
throw new Error("--plugin-publish-scope selected requires --plugins");
143143
}
144+
if (options.pluginPublishScope === "selected") {
145+
throw new Error(
146+
"--plugin-publish-scope selected is only for plugin-only repair publishes; release candidates publish OpenClaw with --plugin-publish-scope all-publishable",
147+
);
148+
}
144149
if (options.pluginPublishScope === "all-publishable" && options.plugins.trim()) {
145150
throw new Error("--plugins is only valid with --plugin-publish-scope selected");
146151
}

‎test/scripts/package-acceptance-workflow.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,9 @@ describe("package artifact reuse", () => {
13041304
expect(workflow).toContain(
13051305
"Full release validation must run rerun_group=all before npm publish",
13061306
);
1307+
expect(workflow).toContain(
1308+
"publish_openclaw_npm=true requires plugin_publish_scope=all-publishable",
1309+
);
13071310
expect(workflow).toContain("preflight-manifest.json");
13081311
expect(npmWorkflow).toContain("preflight-manifest.json");
13091312
expect(npmWorkflow).toContain("Verify full release validation run metadata");

‎test/scripts/release-candidate-checklist.test.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ describe("release candidate checklist", () => {
6161
).toThrow("--plugin-publish-scope selected requires --plugins");
6262
});
6363

64+
it("rejects selected plugin publish scope for release candidates", () => {
65+
expect(() =>
66+
parseArgs([
67+
"--tag",
68+
"v2026.5.14-beta.3",
69+
"--plugin-publish-scope",
70+
"selected",
71+
"--plugins",
72+
"@openclaw/diffs",
73+
]),
74+
).toThrow("release candidates publish OpenClaw with --plugin-publish-scope all-publishable");
75+
});
76+
6477
it("extracts a workflow run id from gh dispatch output", () => {
6578
expect(
6679
parseRunIdFromDispatchOutput(

0 commit comments

Comments
 (0)