Skip to content

Commit 0e9978f

Browse files
author
Christoph Bühler
committed
chore: add semantic-release
1 parent e0ce3e9 commit 0e9978f

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

.travis.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
sudo: false
2-
32
language: node_js
3+
4+
cache:
5+
directories:
6+
- node_modules
7+
8+
notifications:
9+
email: false
10+
411
node_js:
5-
- '6'
6-
- '7'
7-
- '8'
12+
- '6'
13+
- '7'
14+
- '8'
15+
16+
before_script:
17+
- npm prune
18+
19+
after_success:
20+
- npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
821

9-
script:
10-
- npm test
22+
before_deploy:
23+
- npm install
24+
- npm run build
1125

12-
after_script: npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
26+
deploy:
27+
provider: script
28+
script: npm run semantic-release
29+
on:
30+
branch: master

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typescript-parser",
3-
"version": "1.0.0",
3+
"version": "0.0.0-development",
44
"description": "Parser for typescript (and javascript) files, that compiles those files and generates a human understandable AST.",
55
"main": "index.js",
66
"typings": "index.d.ts",
@@ -11,7 +11,8 @@
1111
"lint": "tslint -c tslint.json 'src/**/*.ts'",
1212
"test": "npm run lint && npm run clean && jest -c ./jest.json",
1313
"test:watch": "npm run clean && jest -c ./jest.json --watch",
14-
"typedoc": "del-cli ./docs && typedoc --ignoreCompilerErrors --out ./docs --mode file --tsconfig ./config/tsconfig.build.json ./src/"
14+
"typedoc": "del-cli ./docs && typedoc --ignoreCompilerErrors --out ./docs --mode file --tsconfig ./config/tsconfig.build.json ./src/",
15+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1516
},
1617
"repository": {
1718
"type": "git",
@@ -38,7 +39,8 @@
3839
"tslint": "^5.4.3",
3940
"tslint-config-airbnb": "^5.2.0",
4041
"tsutils": "^2.4.0",
41-
"typedoc": "^0.7.1"
42+
"typedoc": "^0.7.1",
43+
"semantic-release": "^6.3.6"
4244
},
4345
"dependencies": {
4446
"tslib": "^1.7.1",

0 commit comments

Comments
 (0)