Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Create a new version

Guillaume edited this page Aug 30, 2018 · 5 revisions

Prerequisites

  • Local repository is on master branch
  • Local repository is clean (no unstaged modifications, new files, etc.)
  • Run git pull to make sure that the repository is in sync with origin

Process

  1. Run npm version patch|minor|major to create the new version (cf. SemVer)

    If the command succeeds:

    • a branch with the version number will be created
    • the version number will be modified in package.json and package-lock.json
    • changes will be pushed to Github for that branch
    • finally the local repository will switch back to master
  2. Create a PR on Github to get the new version branch merged

  3. Once the PR is merged, create a new release using the correct version number for the tag name (example: v1.0.0 or v0.1.0, please do not omit the 'v')

  4. To generate the changelog:

  • Run the command: npx git-changelog -t v##### (Where v##### corresponds to the last tag/version.)

Documentation

SemVer npm version

Clone this wiki locally