Refactored enterprise release jobs to all use release_custom_package along with a preparation step for packages that need custom changes before the release.
Added utility commands for common preparation steps: prepare_custom_package which customizes the API endpoint, Android library, and package name, and prepare_dream11 which performs the Dream11-specific customizations (this is also going to be used in tests when they're generalized to run on Dream11's changes).
Testing 🧪
To make sure this change doesn't break the release pipeline that we have, I ran the old release jobs on the same code then ran the new ones (releasing to @instabug/react-native-private instead of the production package), installed both the old and new versions from NPM, and then compared the files coming in both the old and new versions to make sure they have the same content (except for the NPM version of course).
Type of change
[ ] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Related issues
Jira ID: MOB-14400
Checklists
Development
[ ] Lint rules pass locally
[ ] The code changed/added as part of this pull request has been covered with tests
Code review
[ ] This pull request has a descriptive title and information useful to a reviewer
[ ] Issue from task tracker has a link to this pull request
Description of the change
Refactored enterprise release jobs to all use
release_custom_package
along with a preparation step for packages that need custom changes before the release.Added utility commands for common preparation steps:
prepare_custom_package
which customizes the API endpoint, Android library, and package name, andprepare_dream11
which performs the Dream11-specific customizations (this is also going to be used in tests when they're generalized to run on Dream11's changes).Testing 🧪
To make sure this change doesn't break the release pipeline that we have, I ran the old release jobs on the same code then ran the new ones (releasing to
@instabug/react-native-private
instead of the production package), installed both the old and new versions from NPM, and then compared the files coming in both the old and new versions to make sure they have the same content (except for the NPM version of course).Type of change
Related issues
Jira ID: MOB-14400
Checklists
Development
Code review