Each change to the version of package.json and npm publish should correspond to a pushed git tag -a v1.0.0 -m 'Releasing 1.0.0' to line things up cleanly with github.
You could also use the npm version [ major | minor | patch ] function for a shortcut. It does the package.json modification and git tagging for you in one step. You'll still have to push the tag and publish the package to npm though.
Each change to the version of
package.json
andnpm publish
should correspond to a pushedgit tag -a v1.0.0 -m 'Releasing 1.0.0'
to line things up cleanly with github.You could also use the
npm version [ major | minor | patch ]
function for a shortcut. It does thepackage.json
modification and git tagging for you in one step. You'll still have to push the tag and publish the package to npm though.