{"slug":"capgo-release-workflows","title":"capgo-release-workflows","summary":"Designs repository-owned release pipelines for Capacitor apps that combine Capgo live updates, native builds (Capgo Build or the team's own CI runners), and App Store / Play publishing, with an automatic OTA-vs-native gate (`bundle releaseType`, `build needed`), staged channels, ","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-05T18:17:08.045333Z","repo":{"url":"https://github.com/Cap-go/capgo-skills","stars":79,"forks":4,"license":"MIT","updatedAt":"2026-12-05T16:44:30Z"},"bodyHtml":"<hr>\n<h2>name: capgo-release-workflows\ndescription: Designs repository-owned release pipelines for Capacitor apps that combine Capgo live updates, native builds (Capgo Build or the team's own CI runners), and App Store / Play publishing, with an automatic OTA-vs-native gate (<code>bundle releaseType</code>, <code>build needed</code>), staged channels, and rollback. Use when the user wants one release system covering OTA, builds, and store publishing, is replacing a hosted release service with CI they own, or asks how CI should decide between a live update and a store build. Do not use for single-step tasks (capgo-release-management, capgo-native-builds, capgo-live-updates), non-Capacitor apps, or Ionic Enterprise plugin migration (ionic-enterprise-sdk-migration).</h2>\n<h1>Capgo Release Workflows</h1>\n<p>Set up an end-to-end release system: Capgo OTA for web changes, native builds for binary changes, store publishing, and a CI gate that picks the right path.</p>\n<h2>When to Use</h2>\n<p>TRIGGER when:</p>\n<ul>\n<li>The user wants a single release pipeline covering live updates, native builds, and store publishing.</li>\n<li>The user is moving off a hosted release service (Appflow-style) to CI they own.</li>\n<li>The user asks \"how does CI know if this needs a store release?\"</li>\n</ul>\n<p>Do not use when:</p>\n<ul>\n<li>The user needs one operation (upload or promote a bundle, request one build). Use <code>capgo-release-management</code> or <code>capgo-native-builds</code>.</li>\n<li>The user is wiring the updater plugin. Use <code>capgo-live-updates</code>.</li>\n<li>The user is migrating off Ionic Appflow specifically. Start with <code>ionic-appflow-migration</code>, then return here for the pipeline.</li>\n<li>The app is not Capacitor.</li>\n</ul>\n<h2>Building Blocks</h2>\n<table>\n<thead>\n<tr>\n<th>Area</th>\n<th>Skill</th>\n<th>Key command</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>OTA updates</td>\n<td><code>capgo-live-updates</code>, <code>capgo-release-management</code></td>\n<td><code>bundle upload</code>, <code>channel promote</code></td>\n</tr>\n<tr>\n<td>Native builds on Capgo</td>\n<td><code>capgo-native-builds</code></td>\n<td><code>build request</code></td>\n</tr>\n<tr>\n<td>Native builds on own runners</td>\n<td><code>capacitor-ci-cd</code></td>\n<td>Xcode / Gradle / Fastlane</td>\n</tr>\n<tr>\n<td>Store listing and review</td>\n<td><code>capacitor-app-store</code>, <code>capacitor-apple-review-preflight</code></td>\n<td>n/a</td>\n</tr>\n</tbody>\n</table>\n<h2>Procedure</h2>\n<h3>1. Inventory (inspect, then report)</h3>\n<p>Find out:</p>\n<ul>\n<li>Which CI system runs (<code>.github/workflows</code>, <code>.gitlab-ci.yml</code>, <code>bitbucket-pipelines.yml</code>, <code>azure-pipelines.yml</code>).</li>\n<li>Whether <code>@capgo/capacitor-updater</code> is installed with the major that matches <code>@capacitor/core</code>, and whether <code>notifyAppReady()</code> is called.</li>\n<li>The existing Capgo channels (<code>npx @capgo/cli@latest channel list &lt;appId&gt;</code>) and the default channel.</li>\n<li>Where native signing lives (Capgo credentials, CI secrets, Fastlane match).</li>\n<li>Whether store uploads are required, or only internal distribution.</li>\n</ul>\n<p>Report the gaps to the user and ask before you choose Capgo Build or their own runners for native builds.</p>\n<h3>2. Define channels and versioning</h3>\n<ul>\n<li>Typical channels: <code>development</code> (self-assign), <code>staging</code>, <code>production</code> (default).</li>\n<li>Use semver bundle versions. In CI, use <code>--bundle &lt;ver&gt;</code> or <code>--auto-bump patch</code>, plus <code>--version-exists-ok</code>.</li>\n<li>Set production to the metadata strategy once, so every upload records its native baseline:</li>\n</ul>\n<pre><code>npx @capgo/cli@latest channel set production com.example.app --disable-auto-update metadata\n</code></pre>\n<h3>3. Add the OTA-vs-native gate</h3>\n<pre><code># After npm ci &amp;&amp; npm run build\nif git diff --name-only \"$BASE\" HEAD | grep -qE '^(ios/|android/|capacitor\\.config\\.)'; then\n  TYPE=native\nelse\n  TYPE=$(npx @capgo/cli@latest bundle releaseType com.example.app --channel production | tr -d '[:space:]')\nfi\n</code></pre>\n<p><code>releaseType</code> prints <code>OTA</code> or <code>native</code> from native package metadata. It cannot see raw native edits, which is why the git-path check is there. <code>build needed</code> is the exit-code version: exit 1 means native is required, exit 0 means OTA is fine, exit 2 means the command failed.</p>\n<h3>4. Wire both branches</h3>\n<ul>\n<li><strong>OTA:</strong> <code>bundle upload --channel staging --fail-on-incompatible --auto-min-update-version</code>, then a manual or approved <code>channel promote staging production</code>, optionally with <code>--rollout 10</code>.</li>\n<li><strong>Native:</strong> run <code>build request --platform ios|android</code> (Capgo Build) or the native jobs, then upload the matching bundle with <code>--auto-min-update-version</code> so the channel baseline advances. Do <strong>not</strong> pass <code>--fail-on-incompatible</code> on that baseline upload, because the native packages are supposed to differ.</li>\n</ul>\n<p>Full GitHub Actions and GitLab templates: <a href=\"https://capgo.app/docs/builder/ci-ota-or-native/\">https://capgo.app/docs/builder/ci-ota-or-native/</a></p>\n<h3>5. Rollback plan (write it down before the first release)</h3>\n<ul>\n<li>OTA: <code>channel set production --bundle &lt;previous&gt;</code> or <code>--rollout-rollback</code>. Auto-pause with <code>--auto-pause-enabled --auto-pause-action rollback</code>.</li>\n<li>Native: there is no rollback in the stores. Ship a fixed build, and keep OTA able to patch the web layer.</li>\n</ul>\n<h3>6. Secrets</h3>\n<ul>\n<li><code>CAPGO_TOKEN</code> (upload-capable, least privilege) and <code>CAPGO_PRIVATE_KEY</code> if bundles are encrypted.</li>\n<li>Native signing: export from Capgo with <code>build credentials manage</code> → <code>.env</code>, then <code>gh secret set -f</code>. Or keep the existing CI secret store.</li>\n<li>Never commit <code>.capgo</code>, <code>.capgo_key_v2</code>, <code>.capgo-credentials.json</code>, or <code>.env.capgo.*</code>.</li>\n</ul>\n<h2>Verification</h2>\n<p>Run once, end to end:</p>\n<ol>\n<li>A web-only commit takes the OTA branch. A device on staging gets the bundle (<code>npx @capgo/cli@latest app debug &lt;appId&gt;</code>).</li>\n<li>A commit that adds or upgrades a native plugin takes the native branch. The build succeeds and lands in TestFlight or the Play internal track.</li>\n<li>After the native release, <code>bundle releaseType --channel production</code> returns <code>OTA</code> again for web-only changes.</li>\n<li>A practice rollback (<code>channel set --bundle &lt;previous&gt;</code>) reaches a test device.</li>\n</ol>\n<h2>Error Handling</h2>\n<ul>\n<li>CI uploads fail with <code>No Capgo API key found</code>: <code>CAPGO_TOKEN</code> is not exported to the step's <code>env</code>.</li>\n<li><code>Bundle NOT compatible with production channel</code> in the OTA branch: the gate was skipped or <code>releaseType</code> ran against a different channel.</li>\n<li>Signing failures: fix credentials first (<code>capgo-native-builds</code>, <code>build prescan</code>) before you touch pipeline logic.</li>\n<li>Store failures: split the iOS and Android jobs so one platform does not block diagnosis of the other.</li>\n</ul>\n<h2>Resources</h2>\n<ul>\n<li>OTA or native in CI: <a href=\"https://capgo.app/docs/builder/ci-ota-or-native/\">https://capgo.app/docs/builder/ci-ota-or-native/</a></li>\n<li>CI/CD integration: <a href=\"https://capgo.app/docs/getting-started/cicd-integration/\">https://capgo.app/docs/getting-started/cicd-integration/</a></li>\n<li>Capgo Build GitHub Actions: <a href=\"https://capgo.app/docs/builder/github-actions/\">https://capgo.app/docs/builder/github-actions/</a></li>\n<li>Native + OTA channel workflow: <a href=\"https://capgo.app/docs/live-updates/native-ota-channel-workflow/\">https://capgo.app/docs/live-updates/native-ota-channel-workflow/</a></li>\n</ul>\n","files":[{"path":"metadata.json","sizeBytes":876,"isText":true},{"path":"SKILL.md","sizeBytes":6319,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"notes-only","suspicious":0,"notes":4,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-05T18:17:29.22994Z","sha256":"46C042E17877F7362A7497C5E0DC4F10685B8156FB5371AFFFD1870FF4C899DF","sizeBytes":3359},"review":null,"source":{"repositoryUrl":"https://github.com/Cap-go/capgo-skills","path":"plugins/capgo-cloud/skills/capgo-release-workflows","license":"MIT","commit":"76462e3a0041ee8dd0d370c344d9fd3ae2c29cdb","subtreeSha":"30DC93365FC7429A89D919FAB535D3F42DDEF7706F3FDA00947797A05AE98B72","lastSyncedAt":"2026-12-05T18:17:06.651351Z"},"reviewedAt":"2026-12-05T18:17:55.403565Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/Cap-go/capgo-skills/tree/main/plugins/capgo-cloud/skills/capgo-release-workflows"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install cap-go-capgo-skills@llmmart"},{"target":"git","command":"git clone https://github.com/Cap-go/capgo-skills.git"}]}