iamjonesy
iamjonesy

Reputation: 25122

Npm bumped version number but npmjs doesn't update

Publish my first npm package earlier today. Set it to v0.0.0. I've fixed a bug and done:

npm version patch -m "Bumped to version %s"

It has now been set to v0.0.1

I pushed to github (with tags) but it's not updated the npm package version on npmjs.org.

Do I need to do something else? Will it update itself?

Upvotes: 0

Views: 243

Answers (1)

Aurélien Thieriot
Aurélien Thieriot

Reputation: 5923

You will have to manually publish the new version I'm afraid:

  $ npm publish

npm-version doesn't seems to push into the repository: https://npmjs.org/doc/cli/npm-version.html

If you want to automate both process though, you can look at a specific Grunt task: https://github.com/geddski/grunt-release

  $ grunt release

Edit:

Oh in fact, there is a standalone release plugin that works with npm (No need for Grunt if you don't want to then): https://npmjs.org/package/npm-release

Upvotes: 1

Related Questions