Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Latest commit

 

History

History
30 lines (23 loc) · 496 Bytes

RELEASING.md

File metadata and controls

30 lines (23 loc) · 496 Bytes

1. Increment a version

npm --no-git-tag-version version [major | minor | patch]
# get the package.json version in a variable
export PKG_VER=`node -e "console.log(require('./package.json').version)"`

2. Commit the changed files

git commit -m "Incremented version to $PKG_VER" package.json README.md

3. Tag a version

git tag $PKG_VER

4. Push version and tag

git push origin master
git push origin $PKG_VER

5. publish to npm

npm publish