Skip to content

Commit

Permalink
test: only add npmrc on master (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Dec 6, 2017
1 parent 6a4fb22 commit 57c14a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
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 57c14a2

Please sign in to comment.