Skip to content

Instantly share code, notes, and snippets.

@paulomcnally
Created November 16, 2018 05:59
Show Gist options
  • Select an option

  • Save paulomcnally/bd6eb033b8320757842c24236f144539 to your computer and use it in GitHub Desktop.

Select an option

Save paulomcnally/bd6eb033b8320757842c24236f144539 to your computer and use it in GitHub Desktop.
Travis CI - NPM Publish module
cache:
paths:
- node_modules/
test:
image: node:10-jessie
stage: test
script:
- yarn install
- yarn run test
production:
stage: deploy
script:
- gem install dpl
- dpl --provider=npm --email=$NPM_EMAIL --api-key=$NPM_API_KEY
only:
- tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment