Skip to content

Commit 59e1e43

Browse files
committed
chore: use semantic-release
1 parent 9448e7a commit 59e1e43

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

circle.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
machine:
2+
node:
3+
# need Node 8 for latest semantic release
4+
version: 8
5+
test:
6+
override:
7+
- npm test
8+
post:
9+
- npm run semantic-release || true

package.json

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cypress/react-tooltip",
3-
"version": "0.3.0",
3+
"version": "0.0.0-development",
44
"description": "A tooltip component for React apps",
55
"main": "dist/tooltip.js",
66
"scripts": {
@@ -9,9 +9,11 @@
99
"lint": "eslint --fix src/*.js src/*.jsx",
1010
"precommit": "npm run lint",
1111
"prepublish": "npm run build-prod",
12-
"release": "releaser",
12+
"pretest": "npm run lint",
1313
"start": "node ./scripts/watch.js --port 8888",
14-
"test": "node ./scripts/test.js"
14+
"test": "node ./scripts/test.js",
15+
"semantic-release":
16+
"semantic-release pre && npm publish --access public && semantic-release post"
1517
},
1618
"repository": {
1719
"type": "git",
@@ -30,20 +32,24 @@
3032
"prop-types": "15.6.0"
3133
},
3234
"devDependencies": {
33-
"@cypress/releaser": "0.1.12",
3435
"babel-eslint": "^7.2.3",
3536
"chai": "^3.5.0",
3637
"chai-enzyme": "0.5.1",
38+
"condition-circle": "1.5.0",
39+
"dont-crack": "1.2.1",
3740
"enzyme": "2.4.1",
3841
"eslint": "^4.12.1",
3942
"eslint-plugin-cypress-dev": "^1.1.1",
4043
"eslint-plugin-mocha": "^4.11.0",
4144
"eslint-plugin-react": "^7.5.1",
45+
"github-post-release": "1.13.1",
4246
"jsdom": "^9.5.0",
4347
"lodash": "^4.0.0",
4448
"react": "15.6.2",
4549
"react-addons-test-utils": "15.6.2",
4650
"react-dom": "15.6.2",
51+
"semantic-release": "8.2.0",
52+
"simple-commit-message": "3.3.1",
4753
"sinon": "^1.17.6",
4854
"sinon-chai": "^2.8.0",
4955
"zunder": "^4.1.1"
@@ -52,5 +58,14 @@
5258
"lodash": "^4.0.0",
5359
"react": "^15.3.2",
5460
"react-dom": "^15.3.2"
61+
},
62+
"release": {
63+
"verifyConditions": "condition-circle",
64+
"analyzeCommits": "simple-commit-message",
65+
"generateNotes": "github-post-release",
66+
"verifyRelease": {
67+
"path": "dont-crack",
68+
"test-against": []
69+
}
5570
}
5671
}

0 commit comments

Comments
 (0)