Skip to content

Create and publish a release

ignatij edited this page Jan 20, 2020 · 1 revision

Create release

  • create branch: hotfix/new-version-release (ex. hotfix/1.5.1)
  • checkout branch
  • update package.json manually (2 files)
  • run npm install to update the package.lock files
  • commit with the new version as message (ex. git commit -m "1.5.1")

  • create tag with the new version (ex. git tag 1.5.1)
  • checkout master and merge master with the hotfix branch
  • push the two commits and newly created tag (git push --tags origin master)

Publish the release on npm

  • delete the dist folder
  • npm run package
  • navigate to dist folder and find the zip that should be published

  • npm whoami (to check if I am logged in)
  • npm login (if necessary)
  • npm publish zip-file-name
Clone this wiki locally