fix(release): treat the plugin manifests as release-version metadata

Release PRs now bump .claude-plugin/plugin.json and .codex-plugin/plugin.json,
but the publication history check rejected them as post-notes product
changes and the release configuration test still expected the previous
extra-files list. Admit both manifests in the release-only allowlist, expect
them in the Release Please configuration, and assert that each manifest
version matches package.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GamerDubz
2026-10-12 00:07:33 +02:00
co-authored by Claude Opus 5.5
parent 4c945f570d
commit 15a5e08338
3 changed files with 26 additions and 1 deletions
@@ -8,6 +8,10 @@ const readJson = async (path: string): Promise<unknown> =>
JSON.parse(await readFile(path, "utf8")) as unknown;
const versionedDocumentation = ["docs/installation.md"] as const;
const pluginManifests = [
".claude-plugin/plugin.json",
".codex-plugin/plugin.json",
] as const;
describe("release configuration", () => {
it("keeps doctor and setup runtime support aligned with package engines", async () => {
@@ -42,6 +46,11 @@ describe("release configuration", () => {
path: "server.json",
jsonpath: "$.packages[0].version",
},
...pluginManifests.map((path) => ({
type: "json",
path,
jsonpath: "$.version",
})),
],
},
},
@@ -79,6 +88,19 @@ describe("release configuration", () => {
expect(/^## \[([^\]]+)\]/mu.exec(changelog)?.[1]).toBe(packageJson.version);
});
it.each(pluginManifests)(
"keeps the plugin manifest %s aligned with the package version",
async (path) => {
const packageJson = (await readJson("package.json")) as {
version: string;
};
expect(await readJson(path)).toMatchObject({
version: packageJson.version,
});
},
);
it("keeps the npm package and MCP Registry metadata aligned", async () => {
const packageJson = (await readJson("package.json")) as {
name: string;