Skip to content

Commit a6241af

Browse files
Added a deployment job to publish tagged releases to npm
1 parent 89fd760 commit a6241af

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.travis.yml

+16
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# https://docs.travis-ci.com/user/customizing-the-build/
44
# https://docs.travis-ci.com/user/migrating-from-legacy/
55

6+
filter_secrets: false
67
language: node_js
78

89
node_js:
@@ -24,3 +25,18 @@ script: npm run lint && npm run coverage
2425
after_success:
2526
# send code-coverage data to Coveralls
2627
- cat ./coverage/lcov.info | coveralls
28+
29+
jobs:
30+
include:
31+
- stage: Deploy
32+
name: Publish to npm
33+
script: true
34+
after_success: true
35+
deploy:
36+
provider: npm
37+
email: $NPM_EMAIL
38+
api_key: $NPM_API_KEY
39+
skip_cleanup: true
40+
on:
41+
tags: true
42+
branch: master

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"coverage": "nyc --reporter=text --reporter=lcov mocha",
3434
"upgrade": "npm-check -u",
3535
"bump": "bump --prompt --tag --push --all",
36-
"release": "npm run upgrade && npm test && npm run bump && npm publish"
36+
"release": "npm run upgrade && npm test && npm run bump"
3737
},
3838
"devDependencies": {
3939
"browserify": "^16.2.3",

0 commit comments

Comments
 (0)