Skip to content

Commit 6a47db9

Browse files
committed
chore(publish): Use standard version
1 parent 1969e65 commit 6a47db9

File tree

3 files changed

+405
-15
lines changed

3 files changed

+405
-15
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ node_js:
44
- "8"
55
- "6"
66
- "4"
7+
before_script:
8+
- 'if [[ -n "$TRAVIS_TAG" ]] && [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn run create-github-release || true; fi'
79
script:
810
- yarn lint
911
- yarn test

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "lib/index.js",
66
"scripts": {
77
"clean": "rimraf lib",
8+
"create-github-release": "conventional-github-releaser -p angular",
89
"build:commonjs": "babel src/ --out-dir lib/ --ignore __tests__,__mocks__",
910
"build:umd": "webpack --config webpack.build.js",
1011
"build:umd:min": "cross-env MINIFY=1 webpack --config webpack.build.js",
@@ -15,6 +16,7 @@
1516
"precommit": "lint-staged",
1617
"preversion": "yarn run lint && yarn test && yarn run build && yarn run bundle && git add dist/ && git diff --quiet --exit-code --cached || git commit -n -m 'publish: Distribution'",
1718
"prepublish": "yarn run build",
19+
"release": "standard-version",
1820
"test": "jest",
1921
"start": "webpack-dev-server --inline --content-base examples/"
2022
},
@@ -53,6 +55,7 @@
5355
"babel-plugin-transform-react-remove-prop-types": "^0.4.0",
5456
"babel-preset-env": "^1.3.3",
5557
"babel-preset-react": "^6.5.0",
58+
"conventional-github-releaser": "^1.1.12",
5659
"cross-env": "^5.0.0",
5760
"css-loader": "^0.28.0",
5861
"enzyme": "^2.3.0",
@@ -73,6 +76,7 @@
7376
"react-modal": "^1.3.0",
7477
"react-test-renderer": "^15.5.4",
7578
"rimraf": "^2.5.2",
79+
"standard-version": "^4.2.0",
7680
"style-loader": "^0.18.1",
7781
"uglifyjs-webpack-plugin": "^0.4.2",
7882
"webpack": "^2.3.3",

0 commit comments

Comments
 (0)