Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.52 KB

RELEASING.md

File metadata and controls

28 lines (22 loc) · 1.52 KB

Test first

  1. mvn install to install it locally and run tests/integration tests, runs about 15 min
  2. use the new version as snapshot dependency for sunrise and run it: sbt clean fullClasspath run, the categories and the products should appear with prices

Release without rerunning the tests

  1. ./preapre-release.sh <RELEASE_TYPE> <RELEASE_BRANCH>

    • <RELEASE_BRANCH> required for PATCH releases
    • <RELEASE_TYPE> is MAJOR, MINOR, PATCH
      • a MAJOR release creates a new branch (v<MAJOR+1>.0), increments the major version and pushes the changes to the branch
      • a MINOR release creates a new branch (v.<MINOR+1>), increments the minor version and pushes the changes to the branch
      • a PATCH release increments the minor version and pushes changes to the current branch
  2. ./perform-release.sh

    • deploys the version from the current branch and publishes the javadoc to github pages
  3. https://oss.sonatype.org/ click "release" for commercetools/sphere stuff in "Staging Repositories"

  4. update GitHub release on https://github.com/commercetools/commercetools-jvm-sdk/releases

  5. update version in the GitHub README

Rollback on failures

  1. ./mvnw release:rollback
  2. may remove tag (example): git tag -d v1.0.0-RC3 && git push origin :refs/tags/v1.0.0-RC3
  3. ./mvnw release:clean

location of artefacts