Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 9c7bd9d

Browse files
committed
ci(release): use semantic-release v10
1 parent 04331ea commit 9c7bd9d

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

.travis.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,29 @@ node_js:
55
- '6'
66

77
cache:
8-
yarn: true
8+
directories:
9+
- $HOME/.npm
910

1011
script:
1112
- npm run lint
1213
- npm run build
1314
- npm run cover
1415

1516
after_success:
16-
# Upload coverage to codecov
17-
- 'nyc report --reporter=lcov > coverage.lcov && bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info'
18-
- npm run semantic-release
17+
- nyc report --reporter=json
18+
- bash <(curl -s https://codecov.io/bash)
19+
20+
jobs:
21+
include:
22+
- stage: release
23+
node_js: '8'
24+
script:
25+
- npm run semantic-release
26+
27+
stages:
28+
- test
29+
- name: release
30+
if: branch = master AND type = push AND fork = false
1931

2032
branches:
2133
except:

package.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"prettier": "prettier --list-different --write \"src/**/*.ts\"",
3333
"build": "tsc",
3434
"watch": "tsc -w",
35-
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
35+
"semantic-release": "semantic-release",
3636
"commitmsg": "validate-commit-msg"
3737
},
3838
"dependencies": {
@@ -57,6 +57,8 @@
5757
"vscode-languageserver-types": "^3.0.3"
5858
},
5959
"devDependencies": {
60+
"@semantic-release/github": "^1.0.0",
61+
"@semantic-release/npm": "^1.0.0",
6062
"@sourcegraph/prettierrc": "^1.1.0",
6163
"@sourcegraph/tsconfig": "^1.0.0",
6264
"@sourcegraph/tslint-config": "^8.0.0",
@@ -78,7 +80,7 @@
7880
"nyc": "^11.0.2",
7981
"prettier": "1.8.2",
8082
"rimraf": "^2.6.1",
81-
"semantic-release": "^8.0.0",
83+
"semantic-release": "^10.0.1",
8284
"sinon": "^4.0.0",
8385
"source-map-support": "^0.5.0",
8486
"temp": "^0.8.3",
@@ -98,6 +100,12 @@
98100
"lib/test/**/*.js"
99101
]
100102
},
103+
"release": {
104+
"verifyConditions": [
105+
"@semantic-release/github",
106+
"@semantic-release/npm"
107+
]
108+
},
101109
"config": {
102110
"commitizen": {
103111
"path": "./node_modules/cz-conventional-changelog"

0 commit comments

Comments
 (0)