Skip to content

Instantly share code, notes, and snippets.

@chapterjason
Last active March 22, 2020 11:09
Show Gist options
  • Save chapterjason/a7bb5a311b3621ccb6ee2cd1bcb77f38 to your computer and use it in GitHub Desktop.
Save chapterjason/a7bb5a311b3621ccb6ee2cd1bcb77f38 to your computer and use it in GitHub Desktop.
Release

Initial release

Update master branch

git checkout master
git pull --rebase origin master

Save release branch

git checkout -b release/0.1

Bump in master

git checkout master
yarn version --no-git-tag-version --new-version 0.2.0-DEV
git add -A
git commit -m "Bump version to 0.2.0-DEV"

Update in release

git checkout release/0.1
yarn version --no-git-tag-version --new-version 0.1.0
git add -A
git commit -m "Update version for 0.1.0"
git tag v0.1.0

Bump in release

git checkout release/0.1
yarn version --no-git-tag-version --new-version 0.1.1-DEV
git add -A
git commit -m "Bump version to 0.1.1-DEV"

Publish the branches tag

git push origin master
git push origin release/0.1
git push origin v0.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment