Skip to content

Instantly share code, notes, and snippets.

@keidrun
Last active October 23, 2018 09:56
Show Gist options
  • Select an option

  • Save keidrun/b3857df0a531b8134cb0072da5d4fb2f to your computer and use it in GitHub Desktop.

Select an option

Save keidrun/b3857df0a531b8134cb0072da5d4fb2f to your computer and use it in GitHub Desktop.
Travis CI settings for NPM
language: node_js
node_js:
- "10"
before_deploy:
- yarn build
deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
tags: true
after_deploy:
- test ! -e /home/travis/.npm/_logs ; TRAVIS_TEST_RESULT=$?
language: node_js
node_js:
- "10"
deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
on:
tags: true
after_deploy:
- test ! -e /home/travis/.npm/_logs ; TRAVIS_TEST_RESULT=$?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment