drd0rk/strgen — Issue #5: Use git tags for tagging before deploying to npm
Author: mwawrusch
Created: 2011-12-21 12:35:54+00:00
State: open

Something like this works well for me:

# Publish new version

* Change version in package.json
* git tag -a v0.0.6 -m 'version 0.0.6'
* git push --tags
* npm publish

Also, to avoid errors, use the pkginfo npm and add this to your main entry point:

require('pkginfo')(module,'version')

it automatically exposes the correct version from within your lib