Skip to content

Commit

Permalink
Merge pull request #303 from primer/shawnbot/publish-as-primer
Browse files Browse the repository at this point in the history
Move access tokens to .travis.yml; don't fail CI on forks
  • Loading branch information
shawnbot authored Aug 4, 2017
2 parents 420ce3a + 5e2300a commit e3f9c74
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ language: node_js
node_js:
- 7

before_install:
- npm config set "//registry.npmjs.org/:_authToken=\${NPM_API_KEY}"
env:
global:
# npm
- secure: "EZewKKWQXmtCwPtYrPZq4OQblv2OyXR61qBIl3pOxGNVG2BCjD6VOgSaiYqkA9Qbt+ihfwQkiiLvTB68gbvRSiBFV9i+XLzKzt4S8CDI5RhTLAxZB3eQFVZRYzldchzWI4sdNhTvYS1kYXmsXQZD6vJmPSnFvOI/ddfzqvnNL4M="
# github
- secure: "J+1oWjvvXjyrwkY/4IFWKdN/weFmQcPwlRuFG4R0Gb3rYe4nqtC9l68sJvmS8asc8dQMhOhcUZCH6sjvo7l2WD4NuK4umPSbs+rJNUsfbvH4pZjStQIj/3ll1OfQelGDWAYQWhIfciYY4F3Bp0ZWTfKOppLQ2AVIYu1fPVXDdlo="

before_script:
- lerna bootstrap
Expand All @@ -12,6 +16,8 @@ script:
- npm test

after_success:
# this will short-circuit the publish step if it fails to interpolate $NPM_API_KEY
- npm config set "//registry.npmjs.org/:_authToken=\${NPM_API_KEY}"
- script/after_success

deploy:
Expand Down

0 comments on commit e3f9c74

Please sign in to comment.