Skip to content

Commit 4b2d737

Browse files
committed
chore: use semantic-release
1 parent 303ad1c commit 4b2d737

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.travis.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,11 @@ install:
3939
- npm install
4040

4141
script:
42-
- npm run test
42+
- npm run test
43+
44+
after_success:
45+
- npm run semantic-release
46+
47+
branches:
48+
except:
49+
- "/^v\\d+\\.\\d+\\.\\d+$/"

package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "electron-builder",
3-
"version": "2.7.2",
43
"description": "Complete solution to build ready for distribution and 'auto update' Electron App installers",
54
"main": "index.js",
65
"scripts": {
@@ -10,9 +9,8 @@
109
"test": "result=\"$(tape index.spec.js ./lib/*.spec.js ./lib/**/*.spec.js)\"; echo \"$result\" | tap-spec; echo \"$result\" | tnyan; ava",
1110
"test-win": "npm run pretest && ava",
1211
"test-build": "result=\"$(tape cli.spec.js)\"; echo \"$result\" | tap-spec; echo \"$result\" | tnyan;",
13-
"publish-please": "publish-please",
1412
"declaration": "dts-generator --name electron-builder --project . --out out/electron-builder.d.ts --indent=' '",
15-
"release": "npm prune && npm test && npm run declaration && npm run publish-please"
13+
"semantic-release": "npm run declaration && semantic-release pre && npm publish && semantic-release post"
1614
},
1715
"repository": {
1816
"type": "git",
@@ -79,7 +77,6 @@
7977
"path-sort": "^0.1.0",
8078
"plist": "^1.2.0",
8179
"proxyquire": "^1.7.4",
82-
"publish-please": "^1.1.0",
8380
"read-package-json": "^2.0.3",
8481
"rimraf": "^2.5.2",
8582
"should": "^8.2.2",
@@ -89,7 +86,8 @@
8986
"ts-babel": "^0.3.0",
9087
"tsconfig-glob": "^0.4.1",
9188
"tslint": "^3.4.0",
92-
"typescript": "^1.8.2"
89+
"typescript": "^1.8.2",
90+
"semantic-release": "^4.3.5"
9391
},
9492
"babel": {
9593
"plugins": [

0 commit comments

Comments
 (0)