Instabug / Instabug-React-Native

In-app feedback and bug reporting tool for React Native
https://instabug.com/platforms/react-native
MIT License
308 stars 100 forks source link

ci: generalize enterprise releases #1275

Closed a7medev closed 1 month ago

a7medev commented 1 month ago

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, 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

Related issues

Jira ID: MOB-14400

Checklists

Development

Code review

InstabugCI commented 1 month ago

Coverage Report

Label Coverage Status
JavaScript 99.0% ✅
Android 50.2% ✅
iOS 47.9% ✅

Generated by :no_entry_sign: dangerJS against defb808338b779287e71975c5721e4f72488f47d

ahmedAlaaInstabug commented 1 month ago

Good Job :clap: