Skip to content

Commit 322be7f

Browse files
committed
🐳 chore(deps): add release-it
1 parent 52a8546 commit 322be7f

File tree

6 files changed

+3887
-85
lines changed

6 files changed

+3887
-85
lines changed

.env.example

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GITHUB_TOKEN="your github token"

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ buck-out/
4242
*.keystore
4343

4444
# Other
45-
vpnJni/*.zip
45+
vpnJni/*.zip
46+
.env

.prettierignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ ios/
1313
*.log
1414
*.svg
1515
*.png
16-
*ignore
16+
*ignore
17+
18+
# Other
19+
CHANGELOG.md

.release-it.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"git": {
3+
"requireBranch": "master",
4+
"requireCommits": true,
5+
"commitMessage": "✨ feat(version): release ${version}",
6+
"tagName": "v${version}",
7+
"tagAnnotation": "✨ feat(version): release ${version}"
8+
},
9+
"npm": {
10+
"publish": true
11+
},
12+
"github": {
13+
"release": true,
14+
"releaseName": "v${version}"
15+
},
16+
"plugins": {
17+
"@release-it/conventional-changelog": {
18+
"preset": "@favoloso/emoji",
19+
"infile": "CHANGELOG.md",
20+
"header": "# Changelog",
21+
"ignoreRecommendedBump": true
22+
}
23+
}
24+
}

package.json

+24-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"react-native-simple-openvpn.podspec"
1616
],
1717
"scripts": {
18+
"release": "dotenv release-it --",
19+
"release-dry": "yarn release --dry-run",
20+
"pub-dry": "npm publish --dry-run",
1821
"test": "echo \"Error: no test specified\" && exit 1",
1922
"build-vpn-lib": "yarn build-ics-ovpn; yarn gen-vpn-lib; yarn patch-vpn-lib",
2023
"build-ics-ovpn": "sh scripts/build-ics-ovpn.sh",
@@ -39,12 +42,32 @@
3942
"license": "GPL-2.0-or-later",
4043
"licenseFilename": "LICENSE",
4144
"readmeFilename": "README.md",
45+
"publishConfig": {
46+
"registry": "https://registry.npmjs.org/"
47+
},
48+
"favolosoEmoji": {
49+
"showEmojiPerCommit": false,
50+
"emojis": {
51+
"feat": {
52+
"emoji": "",
53+
"heading": "✨ Features"
54+
},
55+
"fix": {
56+
"emoji": "🐞",
57+
"heading": "🐞 Bug Fixes"
58+
}
59+
}
60+
},
4261
"peerDependencies": {
4362
"react-native": ">=0.63"
4463
},
4564
"devDependencies": {
65+
"@favoloso/conventional-changelog-emoji": "^0.10.0",
66+
"@release-it/conventional-changelog": "^5.1.1",
4667
"archiver": "^5.3.0",
4768
"clang-format": "^1.4.0",
48-
"prettier": "^2.3.2"
69+
"dotenv-cli": "^7.1.0",
70+
"prettier": "^2.3.2",
71+
"release-it": "^15.9.3"
4972
}
5073
}

0 commit comments

Comments
 (0)