Skip to content

Commit 9fa8efa

Browse files
authored
feat: set up semantic-release (#87)
1 parent 1ef2b33 commit 9fa8efa

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

.travis.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
language: node_js
2+
cache:
3+
directories:
4+
- ~/.npm
5+
notifications:
6+
email: false
27
node_js:
3-
- "4"
4-
- "5"
5-
- "6"
8+
- '9'
9+
- '8'
10+
- '6'
11+
- '4'
12+
after_success:
13+
- npm run semantic-release
14+
branches:
15+
except:
16+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "electron-typescript-definitions",
3-
"version": "1.2.11",
3+
"version": "0.0.0-development",
44
"description": "Automatically generated TypeScript definitions files for the Electron API",
55
"bin": "cli.js",
66
"main": "index.js",
@@ -13,7 +13,8 @@
1313
"pretest-output": "npm run build -- -o=test-smoke/electron/index.d.ts && cd test-smoke/electron/test && rm -f *.js",
1414
"test-output": "tslint electron.d.ts --format stylish && cd test-smoke/electron && tsc --project tsconfig.json",
1515
"prepack": "check-for-leaks",
16-
"prepush": "check-for-leaks"
16+
"prepush": "check-for-leaks",
17+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1718
},
1819
"author": {
1920
"name": "Samuel Attard",
@@ -25,7 +26,8 @@
2526
"check-for-leaks": "^1.2.0",
2627
"husky": "^0.14.3",
2728
"mocha": "^3.1.2",
28-
"standard": "^9.0.2"
29+
"standard": "^9.0.2",
30+
"semantic-release": "^8.2.0"
2931
},
3032
"standard": {
3133
"env": {
@@ -43,5 +45,9 @@
4345
"rimraf": "^2.5.4",
4446
"tslint": "^4.5.1",
4547
"typescript": "^2.2.1"
48+
},
49+
"repository": {
50+
"type": "git",
51+
"url": "https://github.com/electron/electron-typescript-definitions.git"
4652
}
4753
}

0 commit comments

Comments
 (0)