just-boris / less-plugin-glob

Globbing support for LESS
MIT License
70 stars 12 forks source link

Add an NPM publish automation via Travis #2

Open Meesayen opened 9 years ago

Meesayen commented 9 years ago

This one will be really useful for you, as it allows you to publish your module on the npm registry by simply tagging your git codebase.

http://docs.travis-ci.com/user/deployment/npm/

Can't do a PR for that since it requires your email and api_key for npmjs.com (don't worry, it encrypts it)

After the initial setup, you can publish your module by doing so: git tag -a vVERSION_NUMBER -m "a commit message for the tag", i.e. git tag -a v1.1.0 -m "Release v1.1.0"

This way you will catch two birds with one stone (having tagged version of your module on github, and an automatic publish on npmjs).

Cheers.

just-boris commented 9 years ago

Published v1.1.0 manually. I will think about automation later.