fix(release): sync plugin manifests for v9.0.0
Capture the plugin manifest version bumps that release:prepare generated for 9.0.0 and update the release staging step so Claude and Codex plugin manifests are included automatically in future release commits.
This commit is contained in:
@@ -138,6 +138,22 @@ function stageReleaseFiles(projectRoot, contract) {
|
||||
includeMixed: true,
|
||||
includeReleaseManaged: true,
|
||||
});
|
||||
|
||||
const claudePluginFiles = [
|
||||
".claude-plugin/plugin.json",
|
||||
".claude-plugin/marketplace.json",
|
||||
].filter((filePath) => fs.existsSync(path.join(projectRoot, filePath)));
|
||||
|
||||
const pluginsDir = path.join(projectRoot, "plugins");
|
||||
const codexPluginFiles = fs.existsSync(pluginsDir)
|
||||
? fs
|
||||
.readdirSync(pluginsDir, { withFileTypes: true })
|
||||
.filter((entry) => entry.isDirectory())
|
||||
.map((entry) => path.join("plugins", entry.name, ".codex-plugin", "plugin.json"))
|
||||
.filter((filePath) => fs.existsSync(path.join(projectRoot, filePath)))
|
||||
: [];
|
||||
|
||||
filesToStage.push(...claudePluginFiles, ...codexPluginFiles);
|
||||
runCommand("git", ["add", ...filesToStage], projectRoot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user