Skip to content

Commit fe78bb8

Browse files
committed
feat(package.json): improve release process
1 parent 852a8c7 commit fe78bb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ node_js:
99
- '8'
1010
- '6'
1111
after_success:
12-
- npm run semantic-release
12+
- npm run release
1313
branches:
1414
except:
1515
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"dev": "webpack-dev-server --open --config webpack.dev.js",
1515
"test": "echo \"Error: no test specified\" && exit 0",
1616
"build": "webpack --config webpack.prod.js",
17-
"release": "./node_modules/.bin/semantic-release pre && npm publish && ./node_modules/.bin/semantic-release post",
18-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
17+
"semantic-release": "./node_modules/.bin/semantic-release",
18+
"release": "npm run build && npm run semantic-release pre && npm publish && npm run semantic-release post"
1919
},
2020
"repository": {
2121
"type": "git",

0 commit comments

Comments
 (0)