Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.
JavaScript agent-skillsai-agentsai-seoclaudeclaude-codeclaude-code-pluginclaude-skillscodexcontent-marketingconversion-rate-optimizationcopywritingcursoremail-marketinggenerative-engine-optimizationgrowth-marketingmarketingmarketing-automationsaas-marketingseoskill-md
ci: sync the Codex plugin version alongside plugin.json
Corey Haines8a21613bf9ea
diff --git a/.github/scripts/sync-skills.js b/.github/scripts/sync-skills.jsindex 0dc90a1..9d29a76 100644--- a/.github/scripts/sync-skills.js+++ b/.github/scripts/sync-skills.js@@ -12,6 +12,7 @@ const path = require("path");const SKILLS_DIR = "skills";const MARKETPLACE_FILE = ".claude-plugin/marketplace.json";const PLUGIN_FILE = ".claude-plugin/plugin.json";+const CODEX_PLUGIN_FILE = ".codex-plugin/plugin.json";const README_FILE = "README.md";/**@@ -164,11 +165,11 @@ function updateMarketplace(skills) {* check (`claude plugin update`); if it drifts from marketplace.json the* update path silently breaks.*/-function updatePluginVersion() {- if (!fs.existsSync(PLUGIN_FILE)) return { updated: false };+function updatePluginVersion(file = PLUGIN_FILE) {+ if (!fs.existsSync(file)) return { updated: false };const marketplace = JSON.parse(fs.readFileSync(MARKETPLACE_FILE, "utf8"));- const plugin = JSON.parse(fs.readFileSync(PLUGIN_FILE, "utf8"));+ const plugin = JSON.parse(fs.readFileSync(file, "utf8"));const marketplaceVersion = marketplace.metadata && marketplace.metadata.version;if (!marketplaceVersion) return { updated: false };@@ -176,7 +177,7 @@ function updatePluginVersion() {const oldVersion = plugin.version;plugin.version = marketplaceVersion;- fs.writeFileSync(PLUGIN_FILE, JSON.stringify(plugin, null, 2) + "\n");+ fs.writeFileSync(file, JSON.stringify(plugin, null, 2) + "\n");return { updated: true, oldVersion, newVersion: marketplaceVersion };}@@ -186,8 +187,9 @@ function main() {const marketplaceResult = updateMarketplace(skills);const readmeUpdated = updateReadme(skills);const pluginResult = updatePluginVersion();+ const codexResult = updatePluginVersion(CODEX_PLUGIN_FILE);- if (!marketplaceResult.updated && !readmeUpdated && !pluginResult.updated) {+ if (!marketplaceResult.updated && !readmeUpdated && !pluginResult.updated && !codexResult.updated) {console.log("Everything is already in sync");return;}@@ -203,6 +205,10 @@ function main() {console.log(`Bumped plugin.json version: ${pluginResult.oldVersion} → ${pluginResult.newVersion}`);}+ if (codexResult.updated) {+ console.log(`Bumped .codex-plugin/plugin.json version: ${codexResult.oldVersion} → ${codexResult.newVersion}`);+ }+if (readmeUpdated) {console.log("Updated README.md skills table");}diff --git a/.github/workflows/sync-skills.yml b/.github/workflows/sync-skills.ymlindex bcbb97a..4d2704b 100644--- a/.github/workflows/sync-skills.yml+++ b/.github/workflows/sync-skills.yml@@ -28,4 +28,4 @@ jobs:commit_user_name: Coreybotcommit_user_email: coreybot+github-actions[bot]@users.noreply.github.comcommit_message: "chore: sync skills with marketplace.json, plugin.json, and README"- file_pattern: ".claude-plugin/marketplace.json .claude-plugin/plugin.json README.md"+ file_pattern: ".claude-plugin/marketplace.json .claude-plugin/plugin.json .codex-plugin/plugin.json README.md"