Skip to content

Add an NPM publish automation via Travis #2

Open
@Meesayen

Description

@Meesayen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions