- Node.js should be installed (requires to run publish script).
- Flutter should be configure on the device.
- Git command-line tool
- Add
CHANGELOGyou want (no need to commit; Step 2 will commit it by itself). - Run
node publish.js patch|minor|major|<version>. - Commit Changed files (Constant.java, Constants.swift, CHANGELOG.md, pubspec.yaml) and push to gitlab.
- Create tag with same as new version and push it to gitlab.
- That set! Other things will be done by CI/CD.
node publish.js patch | minor | major | \<version\>
-
node publish.jsruns script which will publish iOS SDK. -
It requires one argument.
patch: It will publish iOS SDK withpatchversion.minor: It will publish iOS SDK withminorversion.major: It will publish iOS SDK withmajorversion.<version>: It will publish iOS SDK withversionversion.
Version should be in valid format i.e.1.0.0
-
Script will check for valid number and update version in
CooeeSDK.podspec&Constant.swift. -
Then script will push code to main repository and will also push tag.
-
At last script will push code to cocoapods repository.