Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.

Commit 2db6d7e

Browse files
committed
release tool
1 parent b9dbc89 commit 2db6d7e

3 files changed

Lines changed: 1583 additions & 75 deletions

File tree

.release-it.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"increment": "conventional:angular",
3+
"changelogCommand": "conventional-changelog -p angular | tail -n +3",
4+
"safeBump": false,
5+
"src": {
6+
"commitMessage": "chore: release %s",
7+
"tagName": "v%s"
8+
},
9+
"npm": {
10+
"publish": true
11+
},
12+
"github": {
13+
"release": true
14+
}
15+
}

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
"lint": "eslint .",
1616
"format": "eslint . --fix",
1717
"build": "babel --no-babelrc --plugins=transform-react-jsx,transform-class-properties,transform-object-rest-spread,transform-flow-strip-types src --copy-files --out-dir dist --ignore '**/__tests__/**'",
18-
"prepare": "yarn build"
18+
"prepare": "yarn build",
19+
"release": "release-it"
20+
},
21+
"publishConfig": {
22+
"registry": "https://registry.npmjs.org/"
1923
},
2024
"keywords": [
2125
"react-native-component",
@@ -47,6 +51,7 @@
4751
"babel-plugin-transform-object-rest-spread": "^6.13.0",
4852
"babel-plugin-transform-react-jsx": "^6.18.0",
4953
"babel-preset-react-native": "^4.0.0",
54+
"conventional-changelog-cli": "^2.0.5",
5055
"eslint": "^4.12.1",
5156
"eslint-config-satya164": "^1.0.1",
5257
"eslint-plugin-react-native-globals": "^0.1.0",
@@ -56,7 +61,8 @@
5661
"react": "16.3.1",
5762
"react-dom": "16.3.1",
5863
"react-native": "~0.55.4",
59-
"react-test-renderer": "16.3.1"
64+
"react-test-renderer": "16.3.1",
65+
"release-it": "^7.6.1"
6066
},
6167
"peerDependencies": {
6268
"@react-navigation/core": "*",

0 commit comments

Comments
 (0)