This repository was archived by the owner on Oct 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +26
-6
lines changed
Expand file tree Collapse file tree 2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,29 @@ node_js:
55 - ' 6'
66
77cache :
8- yarn : true
8+ directories :
9+ - $HOME/.npm
910
1011script :
1112 - npm run lint
1213 - npm run build
1314 - npm run cover
1415
1516after_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
2032branches :
2133 except :
Original file line number Diff line number Diff line change 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" : {
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" ,
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" ,
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"
You can’t perform that action at this time.
0 commit comments