Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.7 KB

RELEASE.md

File metadata and controls

49 lines (38 loc) · 1.7 KB

Guide for publication

  1. Create a branch with the name of the version x.x.x

  2. Change the version in version.rb file and in ReachFiveApi.swift

    $VERSION = 'x.x.x'
    let defaultParams: [String: String] = [
        "platform": "ios",
        // TODO: read from the version.rb. Either directly or indirectly from Reach5.h, Info.plist...
        "sdk": "x.x.x",
        "device": deviceInfo,
    ]
  3. Run update.sh to install the new version of this library and update the dependencies

    ./update.sh
  4. Update to latest package versions for SPM in XCode or with this command

    swift package update
  5. Update the CHANGELOG.md file

  6. Test the modifications on the SPM project DemoSharedCredentials. SPM tends to be stricter than Cocoapods when validating dependencies and code visibility.

  7. Submit and merge the pull request

  8. Add git tag x.x.x to the merge commit

    git tag x.x.x
  9. Push the tag

    git push origin x.x.x
  10. The CI will automatically publish this new version

  11. Finally, draft a new release in the Github releases tab (copy & paste the changelog in the release's description).

  12. If the new version needs a fork of the documentation, the branch x.x.x should exist in perpetuity for the purpose of this documentation.
    If, at step 7., the x.x.x branch was merged (not squashed) into master, then keep the branch open.
    If the branch was squashed, then delete the branch and recreate a new branch still named x.x.x.