Here are the steps to get the thing properly released on GitHub and published under the npm public registry. There's the need of some manual interventions throughout the release process.
- Make sure you're able to run
react-d3-graphlocally, follow theContributionssteps in theREADME.md. - Install the github-changelog-generator gem locally. The distribution script will use it to automatically generate a changelog (if possible version >=1.15.2).
- Verify the version:
github_changelog_generator -v
-
Update versioning in
package.json,package-lock.jsonand.github_changelog_generator. -
npm run dist:sandbox- generates new sandbox assets. -
npm run start- server should keep running in the background as we're going to run cypress against it. -
# https://github.com/github-changelog-generator/github-changelog-generator#github-token export CHANGELOG_GITHUB_TOKEN="«your-40-digit-github-token»" export GITHUB_USERNAME="«your-github-user-name»" export VERSION_PREV=x.x.x export VERSION_NEW=x.x.x npm run dist
Please fill in the
VERSION_*env vars properly to ensure we link documentation during the build process. -
git commit -am "Release x.x.x". -
Create the release x.x.x in GitHub. Go to releases and click
"Draft a new release".- Pick a suitable title that highlights some of the most relevant changes.
- Copy & paste the output of the new CHANGELOG into the release notes.
-
Once you're done on GitHub, go back to you terminal and type
git pull origin masterto pull the latest tag. -
npm publish(see npm-publish docs for more details).