This repository was archived by the owner on Oct 16, 2020. It is now read-only.
File tree 2 files changed +26
-6
lines changed
2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,29 @@ node_js:
5
5
- ' 6'
6
6
7
7
cache :
8
- yarn : true
8
+ directories :
9
+ - $HOME/.npm
9
10
10
11
script :
11
12
- npm run lint
12
13
- npm run build
13
14
- npm run cover
14
15
15
16
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
19
31
20
32
branches :
21
33
except :
Original file line number Diff line number Diff line change 32
32
"prettier" : " prettier --list-different --write \" src/**/*.ts\" " ,
33
33
"build" : " tsc" ,
34
34
"watch" : " tsc -w" ,
35
- "semantic-release" : " semantic-release pre && npm publish && semantic-release post " ,
35
+ "semantic-release" : " semantic-release" ,
36
36
"commitmsg" : " validate-commit-msg"
37
37
},
38
38
"dependencies" : {
57
57
"vscode-languageserver-types" : " ^3.0.3"
58
58
},
59
59
"devDependencies" : {
60
+ "@semantic-release/github" : " ^1.0.0" ,
61
+ "@semantic-release/npm" : " ^1.0.0" ,
60
62
"@sourcegraph/prettierrc" : " ^1.1.0" ,
61
63
"@sourcegraph/tsconfig" : " ^1.0.0" ,
62
64
"@sourcegraph/tslint-config" : " ^8.0.0" ,
78
80
"nyc" : " ^11.0.2" ,
79
81
"prettier" : " 1.8.2" ,
80
82
"rimraf" : " ^2.6.1" ,
81
- "semantic-release" : " ^8 .0.0 " ,
83
+ "semantic-release" : " ^10 .0.1 " ,
82
84
"sinon" : " ^4.0.0" ,
83
85
"source-map-support" : " ^0.5.0" ,
84
86
"temp" : " ^0.8.3" ,
98
100
" lib/test/**/*.js"
99
101
]
100
102
},
103
+ "release" : {
104
+ "verifyConditions" : [
105
+ " @semantic-release/github" ,
106
+ " @semantic-release/npm"
107
+ ]
108
+ },
101
109
"config" : {
102
110
"commitizen" : {
103
111
"path" : " ./node_modules/cz-conventional-changelog"
You can’t perform that action at this time.
0 commit comments