Skip to content

Commit

Permalink
test: only use .npmrc if a non-PR
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Dec 12, 2017
1 parent 183add9 commit 8967c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -9,7 +9,7 @@ node_js:
- '8'
- '6'
before_install:
- if [ "$TRAVIS_BRANCH" == "master" ]; then echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc; fi
- if [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ]; then echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc; fi
after_success:
- npm run semantic-release
branches:
Expand Down

0 comments on commit 8967c02

Please sign in to comment.