gratipay-badge
is a complex beast due to the image coming directly from the repository. As a result, it is necessary to document the steps to make sure nothing is missed.
In the future, we hope to make the release a 1 step process:
Currently, we require you have git
and node>=0.8.0
installed.
-
Update
README.md
to point to latest semver for all URLs. This has been automated withupdate-semver.sh
./update-semver.sh {{semver}}
-
Add update notes to
CHANGELOG.md
-
Stage changes
git add -p
-
Commit to
git
, taggit
, push commit, pushtags
, update/create semver branches (e.g.2.x.x
for2.0.x
), push semver branches viafoundry
.# If we haven't installed `foundry` and our plugins, do so if test -x node_modules/.bin/foundry; then npm install fi # Release via foundry ./node_modules/.bin/foundry release {{semver}}
-
In the background,
foundry
is performing the following steps -
Commit changes with message "Release {{semver}}"
git commit -m "Release {{semver}}"
-
git tag
with versiongit tag {{semver}}
-
Publish
master
branchgit push origin master
-
Publish tag
git push --tags
-
Overwrite variable minor semver branch (e.g.
2.0.0
->2.x.x
)git checkout -B {{variable-minor-semver}}
-
Publish branch
git push origin {{variable-minor-semver}}
-
Overwrite variable patch semver branch (e.g.
2.0.0
->2.0.x
)git checkout -B {{variable-patch-semver}}
-
Publish branch
git push origin {{variable-patch-semver}}
-
Return to
master
git checkout master
-