Skip to content

Commit

Permalink
Added a deployment job to publish tagged releases to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Dec 17, 2018
1 parent a1a8ed5 commit 2e1d838
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .travis.yml
Expand Up @@ -3,6 +3,7 @@
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/

filter_secrets: false
language: node_js

node_js:
Expand All @@ -20,3 +21,18 @@ script: npm run lint && npm run coverage
after_success:
# send code-coverage data to Coveralls
- cat ./coverage/lcov.info | coveralls

jobs:
include:
- stage: Deploy
name: Publish to npm
script: true
after_success: true
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_API_KEY
skip_cleanup: true
on:
tags: true
branch: master
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
"coverage": "nyc --reporter=text --reporter=lcov mocha",
"upgrade": "npm-check -u",
"bump": "bump --prompt --tag --push --all",
"release": "npm run upgrade && npm run test && npm run bump && npm publish"
"release": "npm run upgrade && npm run test && npm run bump"
},
"devDependencies": {
"browserify": "^16.2.3",
Expand Down

0 comments on commit 2e1d838

Please sign in to comment.