Skip to content

Release Process

Alex Gilleran edited this page Feb 6, 2019 · 10 revisions
  1. Merge the last release branch into master

  2. Create a new release branch:

git checkout master
git fetch origin master
git reset --hard origin/master
git checkout -b release/<version>
  1. Bump the lerna version
lerna publish --force-publish --skip-npm --skip-git

The new version should end in -RCx, e.g. 0.0.51-RC1

  1. Search for the old version in text and replace it.

  2. Push the release branch to github.

git push --set-upstream origin release/0.0.51
  1. Tag with the version and push that too.
git tag vx.x.x-RCx
git push origin vx.x.x-RCx

Wait for Gitlab to build that and push it up to dockerhub. Meanwhile...

  1. Release the last version without -RC - repeat steps 1-5 but first checkout the old release branch:
git checkout release/<old version>
git pull
  1. Create a branch for the new master version and bump its version to the new prerelease
git checkout master
git fetch origin master
git reset --hard origin/master
git checkout -b bump-version
lerna publish --force-publish --skip-npm --skip-git #publish with a pre-release version like 0.0.50-0

Also do a search using a text editor then commit.

  1. Check out a merge branch from the old release branch and align the version with new master:
git checkout release/<old release version>
git checkout -b merge/<old release version>
lerna publish --force-publish --skip-npm --skip-git #set the version to the new master version

And do a text editor search to update other instances of the old version

  1. Merge the merge branch into new-master
git checkout new-master
git merge merge/0.0.50
  1. Put a new version at the top of the CHANGES.md file

  2. Push new-master and PR it!

Clone this wiki locally