Skip to content

Commit a744dc4

Browse files
Added a deployment job to publish tagged releases to npm
1 parent 8cbcd7d commit a744dc4

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:
@@ -21,3 +22,18 @@ before_script:
2122
- npm link eslint-config-modular
2223

2324
script: npm test
25+
26+
jobs:
27+
include:
28+
- stage: Deploy
29+
name: Publish to npm
30+
script: true
31+
after_success: true
32+
deploy:
33+
provider: npm
34+
email: $NPM_EMAIL
35+
api_key: $NPM_API_KEY
36+
skip_cleanup: true
37+
on:
38+
tags: true
39+
branch: master

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"test": "mocha && npm run lint",
5757
"upgrade": "npm-check -u",
5858
"bump": "bump --prompt --tag --push --all",
59-
"release": "npm run upgrade && npm test && npm run bump && npm publish"
59+
"release": "npm run upgrade && npm test && npm run bump"
6060
},
6161
"devDependencies": {
6262
"babel-eslint": "^10.0.1",

0 commit comments

Comments
 (0)