Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.86 KB

RELEASE_PROCESS.md

File metadata and controls

34 lines (26 loc) · 1.86 KB

Release Process

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.

Requirements

  • Make sure you're able to run react-d3-graph locally, follow the Contributions steps in the README.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

Release steps

  1. Update versioning in package.json, package-lock.json and .github_changelog_generator.

  2. npm run dist:sandbox - generates new sandbox assets.

  3. npm run start - server should keep running in the background as we're going to run cypress against it.

  4. # 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.

  5. git commit -am "Release x.x.x".

  6. Create the release x.x.x in GitHub. Go to releases and click "Draft a new release".

    1. Pick a suitable title that highlights some of the most relevant changes.
    2. Copy & paste the output of the new CHANGELOG into the release notes.
  7. Once you're done on GitHub, go back to you terminal and type git pull origin master to pull the latest tag.

  8. npm publish (see npm-publish docs for more details).