INFRA-3073:Add semver pre-release identifier to builds #21635
+38
−2
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.



Testing examples:
IOS Dev: https://app.bitrise.io/build/44273036-d3e2-4b85-a132-c671030ff7ad?tab=artifacts
Android Dev: https://app.bitrise.io/build/74e16bdb-4894-4506-b8d4-4cf27a1ea182
IOS Prod: https://app.bitrise.io/build/a42361ad-471b-4f7c-9812-8d8d6484e057
Android Prod: https://app.bitrise.io/build/df7ad45b-e9c3-45d9-a138-73c09cf5f9b7?tab=artifacts
Testing shop pipeline: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/38311728-ef76-4b60-a021-0f86a5a9e111
Description
Add environment to end of build name
https://consensyssoftware.atlassian.net/browse/INFRA-3073
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Add environment-specific semver suffixing during prebuild and update iOS/Android/Bitrise version fields accordingly.
scripts/build.shnow derivesBASE_VERSIONfrompackage.jsonand sets the app version per environment:BASE_VERSION.-$METAMASK_ENVIRONMENTwhen invokingscripts/set-semvar-version.shfor both iOS and Android.scripts/set-semvar-version.sh):BASE_VERSIONand updates:package.jsonversionto full semver (possibly suffixed).versionNameandbitrise.ymlVERSION_NAMEto full semver.MARKETING_VERSIONto base version andCURRENT_PROJECT_VERSIONto full semver (macOS/Linux sed variants).Written by Cursor Bugbot for commit b0c497f. This will update automatically on new commits. Configure here.