name: mobile-prepublish-release
description: Prepare a Rabby Mobile publish PR from a clean branch by bumping the apps/mobile version, running yarn rnversion, creating a default changelog when missing, committing build: publish <version>, and opening a GitHub PR when gh is available. Use when Codex needs to cut a mobile publish branch or automate the routine release-prep steps.
Mobile Prepublish Release
Use the repo script:
yarn workspace rabby-mobile prepublish:release
Pass an explicit version when needed:
yarn workspace rabby-mobile prepublish:release --version=0.6.68
Behavior
- If
--versionis omitted, the script increments the patch version fromorigin/develop'sapps/mobile/package.json. - The script fetches
origin/developand switches the current checkout topublish/<version>, reusing an existing local or remote publish branch when present. - The script runs
yarn rnversionfromapps/mobile. - If no changelog exists for the target version in:
apps/mobile/src/changeLogs/<version>.mdapps/mobile/src/changeLogs/<version>.ios.mdapps/mobile/src/changeLogs/<version>.android.mdit createsapps/mobile/src/changeLogs/<version>.mdwith the default release copy.
- The script commits with
build: publish <version>. - If
ghis installed, the script pushes the branch and creates or updates a PR todevelopwith the same title.
Rules
- Start from a clean worktree.
- Prefer the existing publish branch convention
publish/<version>. - Expect the script to change your current branch to
publish/<version>. - Use
--dry-runif you want to inspect the version bump and changelog creation without committing or opening a PR.
Report
After running the script, report:
- target version
- branch name
- commit SHA
- PR URL when one was created