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

Commit 3700c5e

Browse files
committed
chore(release): use semantic-release
1 parent 731ef36 commit 3700c5e

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ script:
1414
after_success:
1515
# Upload coverage to codecov
1616
- 'nyc report --reporter=lcov > coverage.lcov && bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info'
17+
- npm run semantic-release
18+
19+
branches:
20+
except:
21+
- /^v\d+\.\d+\.\d+$/

CHANGELOG.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
)](https://ci.appveyor.com/project/sourcegraph/javascript-typescript-langserver/branch/master)
88
[![codecov](https://codecov.io/gh/sourcegraph/javascript-typescript-langserver/branch/master/graph/badge.svg)](https://codecov.io/gh/sourcegraph/javascript-typescript-langserver)
99
[![Dependencies](https://david-dm.org/sourcegraph/javascript-typescript-langserver.svg)](https://david-dm.org/sourcegraph/javascript-typescript-langserver)
10+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
1011
[![OpenTracing Badge](https://img.shields.io/badge/OpenTracing-enabled-blue.svg)](http://opentracing.io)
1112
[![Gitter](https://badges.gitter.im/sourcegraph/javascript-typescript-langserver.svg)](https://gitter.im/sourcegraph/javascript-typescript-langserver?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
1213

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "javascript-typescript-langserver",
33
"homepage": "https://github.com/sourcegraph/javascript-typescript-langserver",
44
"author": "Sourcegraph",
5-
"version": "2.0.0",
5+
"version": "0.0.0-development",
66
"license": "Apache-2.0",
77
"description": "Implementation of the Language Server Protocol for JavaScript and TypeScript",
88
"keywords": [
@@ -30,7 +30,9 @@
3030
"test": "mocha --require source-map-support/register --timeout 7000 --slow 2000 lib/test/**/*.js",
3131
"lint": "tslint -t msbuild -c tslint.json 'src/**/*.ts'",
3232
"build": "tsc",
33-
"watch": "tsc -w"
33+
"watch": "tsc -w",
34+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
35+
"commitmsg": "validate-commit-msg"
3436
},
3537
"dependencies": {
3638
"@reactivex/rxjs": "^5.3.0",
@@ -65,13 +67,18 @@
6567
"@types/rimraf": "0.0.28",
6668
"@types/sinon": "2.3.1",
6769
"@types/temp": "0.8.29",
70+
"commitizen": "^2.9.6",
71+
"cz-conventional-changelog": "^2.0.0",
72+
"husky": "^0.13.4",
6873
"mocha": "^3.2.0",
6974
"nyc": "^11.0.2",
7075
"rimraf": "^2.6.1",
76+
"semantic-release": "^6.3.6",
7177
"sinon": "^2.0.0",
7278
"source-map-support": "^0.4.11",
7379
"temp": "^0.8.3",
74-
"tslint": "^5.0.0"
80+
"tslint": "^5.0.0",
81+
"validate-commit-msg": "^2.12.2"
7582
},
7683
"bin": {
7784
"javascript-typescript-langserver": "./lib/language-server.js",
@@ -84,5 +91,10 @@
8491
"exclude": [
8592
"lib/test/**/*.js"
8693
]
94+
},
95+
"config": {
96+
"commitizen": {
97+
"path": "./node_modules/cz-conventional-changelog"
98+
}
8799
}
88100
}

0 commit comments

Comments
 (0)