Create a release on Github using the version number from package.json
Create a Github access token with
repo scope and put it in the env variable
GITHUB_RELEASE_TOKEN, together with
GITHUB_RELEASE_USER (the username for the token),
GITHUB_RELEASE_REPO (the repository to create releases in) and
SOURCE_VERSION (the commit hash to tag as the release; this is automatically set on Heroku). Run:
It's handy to run this with npm lifecycle scripts. You might consider postinstall, postpublish or heroku-postbuild.