Skip to content

Commit

Permalink
Issue #3: Adding CD from Travis to NPM
Browse files Browse the repository at this point in the history
This commit updates travis to properly make a new release upon a new
version of the applicaiton. Following the documentation at
http://docs.travis-ci.com/user/deployment/npm/, I did all the changes.

I first installed travis from Ruby Gems.

$ sudo gem install travis -v 1.8.0 --no-rdoc --no-ri -V

mdesales@ubuntu [07/18/2015 0:52:58] ~/dev/github/node-pom-parser
(master *) $ cat ~/.npmrc
//registry.npmjs.org/:_authToken=52****-****-***-***-*****cd9

mdesales@ubuntu [07/18/2015 0:53:19] ~/dev/github/node-pom-parser
(master *) $ travis encrypt --add deploy.api_key
Detected repository as marcellodesales/node-pom-parser, is this correct?
|yes| yes
Reading from stdin, press Ctrl+D when done
52****-****-***-***-*****cd9

From this, it completely updated the api value in the file
automatically. The only additional part added was about which branch it
should release from.

*	modified:   .travis.yml
- All the changes described above.
  • Loading branch information
marcellodesales committed Jul 18, 2015
1 parent 0711107 commit 0100456
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
language: node_js
node_js:
- "0.12"
- "0.11"
- "0.10"
- "iojs"
- '0.12'
- '0.11'
- '0.10'
- iojs
deploy:
provider: npm
email: [email protected]
api_key:
secure: f6/zoIKJPU7qgF+1zvwD/5WMmVAtKq/9/69LhNOM3hp1SBUbLLyS8rhVmQ579Oi48BXLWYPvBcNxgzRtnBi1BhhhI8XCCywBL6kndxorzyVzdi9V6yp6JvBRZT20Gm8XFsfJ4JMzwcw4QTZ1vRXarj9Qj9FgrkpC0QGwn4WN0qA=
on:
tags: true
branch: master

0 comments on commit 0100456

Please sign in to comment.