Skip to content

Commit

Permalink
test: only add npmrc on master
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Dec 6, 2017
1 parent 18c03f9 commit 01ea27a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ node_js:
- '8'
- '6'
before_install:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
- if [ "$TRAVIS_BRANCH" = "master" ]; then
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc; fi
after_success:
- npm run semantic-release
branches:
Expand Down

0 comments on commit 01ea27a

Please sign in to comment.