Skip to content

Commit 2faffad

Browse files
committed
chore: Use semantic release and update some dev deps
1 parent 6b6bff5 commit 2faffad

File tree

3 files changed

+5284
-2929
lines changed

3 files changed

+5284
-2929
lines changed

.travis.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
language: node_js
22
node_js:
3-
- "lts/*"
3+
- 'lts/*'
44
before_install:
55
- curl -o- -L https://yarnpkg.com/install.sh | bash
66
- export PATH="$HOME/.yarn/bin:$PATH"
77
cache:
88
yarn: true
9-
before_script:
10-
- 'if [[ -n "$TRAVIS_TAG" ]] && [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn run create-github-release; fi'
119
script:
1210
- yarn lint
1311
- yarn test -- --ci
@@ -19,4 +17,17 @@ deploy:
1917
local_dir: examples/dist
2018
on:
2119
branch: master
22-
node: "lts/*"
20+
node: 'lts/*'
21+
22+
jobs:
23+
include:
24+
# Define the release stage that runs semantic-release
25+
- stage: release
26+
node_js: lts/*
27+
script: skip
28+
deploy:
29+
provider: script
30+
skip_cleanup: true
31+
script: yarn release
32+
on:
33+
branch: master

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"format": "eslint src --fix --report-unused-disable-directives",
1616
"lint": "eslint src --report-unused-disable-directives",
1717
"prebump": "run-s lint test",
18-
"prepublish": "yarn run build",
19-
"release": "standard-version --sign",
18+
"prepublishOnly": "yarn run build",
19+
"release": "semantic-release",
2020
"test": "cross-env BABEL_OUTPUT=commonjs jest",
2121
"start": "webpack-dev-server --inline --content-base examples/",
2222
"website": "run-s website:clean website:build website:redirect",
@@ -61,11 +61,11 @@
6161
"@babel/preset-react": "^7.0.0",
6262
"babel-core": "^7.0.0-0",
6363
"babel-eslint": "^10.0.1",
64-
"babel-jest": "^24.1.0",
64+
"babel-jest": "^26.0.1",
6565
"babel-loader": "^8.0.0",
6666
"babel-plugin-transform-react-remove-prop-types": "^0.4.15",
6767
"conventional-github-releaser": "^3.1.2",
68-
"cross-env": "^6.0.3",
68+
"cross-env": "^7.0.2",
6969
"css-loader": "^3.3.2",
7070
"enzyme": "^3.5.0",
7171
"enzyme-adapter-react-16": "^1.3.0",
@@ -80,11 +80,11 @@
8080
"hoist-non-react-statics": "^3.0.1",
8181
"html-loader": "^0.5.5",
8282
"html-webpack-plugin": "^3.2.0",
83-
"husky": "^3.1.0",
84-
"jest": "^24.1.0",
83+
"husky": "^4.2.5",
84+
"jest": "^26.0.1",
8585
"less": "^3.8.1",
8686
"less-loader": "^5.0.0",
87-
"lint-staged": "^9.5.0",
87+
"lint-staged": "^10.2.6",
8888
"mini-css-extract-plugin": "^0.8.0",
8989
"npm-run-all": "^4.1.3",
9090
"prettier": "^1.14.2",
@@ -101,7 +101,7 @@
101101
"rollup-plugin-node-resolve": "^5.2.0",
102102
"rollup-plugin-replace": "^2.0.0",
103103
"rollup-plugin-terser": "^5.1.3",
104-
"standard-version": "^7.0.1",
104+
"semantic-release": "^17.0.7",
105105
"webpack": "^4.17.1",
106106
"webpack-cli": "^3.1.0",
107107
"webpack-dev-server": "^3.1.7"
@@ -118,8 +118,7 @@
118118
},
119119
"lint-staged": {
120120
"src/**/*.js": [
121-
"yarn run eslint --fix",
122-
"git add"
121+
"yarn run eslint --fix"
123122
]
124123
},
125124
"husky": {

0 commit comments

Comments
 (0)