Repository navigation
Release: bump the version only once it's in production on the App Store - #225
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The nightly's version step (
version.js --release) moved to the next minor as soon as either store had approved the version:PENDING_DEVELOPER_RELEASE,ACCEPTED, …);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):
READY_FOR_SALE,READY_FOR_DISTRIBUTIONorPREORDER_READY_FOR_SALE(live now), orREPLACED_WITH_NEW_VERSION,REMOVED_FROM_SALEorDEVELOPER_REMOVED_FROM_SALE(was live once).Changes
lib.js:APP_STORE_APPROVEDandappStoreApprovedbecomeAPP_STORE_LIVEandappStoreLive.stores.js:release()checks only the App Store. It still reads Play for the build number, but no longer passes--approved. Its result'sapprovedfield is nowlive.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.jspasses 16 of 16, andTools/Play/play.test.jsstill passes.PENDING_DEVELOPER_RELEASE,IN_REVIEWandWAITING_FOR_REVIEWdon't count.--release.appStoreLiveagainst Sheeping Around's real versions fromasc:PREPARE_FOR_SUBMISSION) givesnull, so it stays 1.7.READY_FOR_DISTRIBUTION.