Skip to content

Commit 89170fe

Browse files
committed
ci(deploy): Add semantic-release
1 parent 5ebe744 commit 89170fe

File tree

3 files changed

+3352
-1347
lines changed

3 files changed

+3352
-1347
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
language: node_js
22
sudo: false
33
node_js:
4+
- 8
45
- 7
56
- 6
6-
- 4
77

88
cache:
99
directories:
1010
- ~/.npm
11+
- node_modules
1112

1213
branches:
1314
only:
@@ -21,8 +22,15 @@ before_install:
2122
- npm set loglevel error
2223
- npm set progress false
2324

25+
script:
26+
- npm run lint && npm run test
27+
2428
after_script:
2529
- npm prune
2630

27-
after_success:
28-
# - npm run semantic-release || true
31+
deploy:
32+
provider: script
33+
script: npm run travis-deploy-once "npm run semantic-release"
34+
skip_cleanup: true
35+
on:
36+
branch: master

0 commit comments

Comments
 (0)