-
Notifications
You must be signed in to change notification settings - Fork 51
How to Publish Changes
Sayed Ibrahim Hashimi edited this page Apr 1, 2015
·
1 revision
You can use the instructions below to publish the npm package to npmjs.org.
- Get latest from git and switch to the
master
branch - Update version in
packages.json
using thenpm version
tool (sample commandnpm version 1.0.0
where1.0.0
is the new version) - Run
npm test
to ensure all tests pass locally - Check in changes in the
master
branch - Push changes to github
- Ensure that the Travis CI build is passing
- Merge changes from
master
torelease
branch - Push changes to github in the
release
branch
The Travis CI is configured to automatically publish to npmjs.org whenever a change is pushed to release
because of this the version must always be updated in one of the commits in the CI build.