Skip to content

Release: bump the version only once it's in production on the App Store - #225

Merged
fleon merged 2 commits into
mainfrom
fix/version-bump-ios-production
Nov 28, 2026
Merged

fleon merged 2 commits into
mainfrom
fix/version-bump-ios-production

Conversation

@fleon

@fleon fleon commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

The nightly's version step (version.js --release) moved to the next minor as soon as either store had approved the version:

  • an App Store version in any approved state, including approved but not yet released (PENDING_DEVELOPER_RELEASE, ACCEPTED, …);
  • a Play production release that names the version.

From now on, the minor goes up only when the version is in production on the App Store, on any of its platforms (iOS, tvOS or macOS):

  • Counts: READY_FOR_SALE, READY_FOR_DISTRIBUTION or PREORDER_READY_FOR_SALE (live now), or REPLACED_WITH_NEW_VERSION, REMOVED_FROM_SALE or DEVELOPER_REMOVED_FROM_SALE (was live once).
  • Doesn't count: waiting for review, in review, approved but not released, and anything on Play. Android doesn't use version names for anything.

Changes

  • lib.js: APP_STORE_APPROVED and appStoreApproved become APP_STORE_LIVE and appStoreLive.
  • stores.js: release() checks only the App Store. It still reads Play for the build number, but no longer passes --approved. Its result's approved field is now live.
  • nightly.js: the report line names the live App Store version.
  • version.js, Tools/Release/README.md, AGENTS.md, README.md: describe the new rule.

Verification

  • node --test Tools/Release/release.test.js passes 16 of 16, and Tools/Play/play.test.js still passes.
  • New cases:
    • iOS PENDING_DEVELOPER_RELEASE, IN_REVIEW and WAITING_FOR_REVIEW don't count.
    • A live tvOS version counts even while the iOS version with the same number is waiting for review.
    • A Play production release of the version leaves it unchanged in --release.
  • I ran appStoreLive against Sheeping Around's real versions from asc:
    • 1.7 (PREPARE_FOR_SUBMISSION) gives null, so it stays 1.7.
    • 1.6.1 gives READY_FOR_DISTRIBUTION.

…App Store

The nightly moved to the next minor as soon as either store had approved
the version: an App Store version waiting for release, a Play production
release. A version only approved, or still in review, keeps its number, and
Play never counts, since Android goes by build numbers alone.

The bump now needs an iOS version that's live, or was live and has since
been replaced or removed. tvOS and macOS versions don't count either. Play
is still read for the build number, no longer for --approved.
@fleon fleon changed the title Release: bump the version only once it's in production on the iOS App Store Release: bump the version only once it's in production on the App Store Nov 28, 2026
@fleon
fleon merged commit 5354a11 into main Nov 28, 2026
11 checks passed
@fleon
fleon deleted the fix/version-bump-ios-production branch November 28, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant