Skip to content

Commit 2d81a17

Browse files
authored
Merge pull request rsuite#15 from rsuite/travis-npm-deploy
Travis npm deploy
2 parents 263e0a1 + 4f2da0e commit 2d81a17

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ before_install:
2121
branches:
2222
only:
2323
- master
24+
25+
deploy:
26+
provider: npm
27+
skip-cleanup: true
28+
29+
api_key: $NPM_AUTH_TOKEN
30+
on:
31+
tags: true

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"tdd": "karma start",
2121
"test": "npm run format:check && npm run lint && NODE_ENV=coverage karma start --single-run",
2222
"coveralls": "cat ./coverage/lcov/lcov.info | ./node_modules/.bin/coveralls",
23-
"flow": "flow"
23+
"flow": "flow",
24+
"prepublishOnly": "npm run build"
2425
},
2526
"keywords": ["react", "rsuite", "component", "react-component"],
2627
"author": "HYPERS Team",

0 commit comments

Comments
 (0)