Skip to content

Commit d63846b

Browse files
authored
Merge pull request #7 from CoolBitX-Technology/fix/config-for-release-error
🐛 fix: release error
2 parents e57dd86 + 8aa06e7 commit d63846b

File tree

4 files changed

+38
-26
lines changed

4 files changed

+38
-26
lines changed

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,36 @@ bun install
1717

1818
```bash
1919
npm login
20-
bun release
20+
bun release $RELEASE_VERSION # e.g.: 0.7.17-cbx.0
2121
```
22+
23+
Example log for publishing:
24+
25+
```bash
26+
❯ bun release 0.7.17-cbx.6
27+
$ ./scripts/release.sh 0.7.17-cbx.6
28+
Starting the release process...
29+
Provided options: 0.7.17-cbx.6
30+
Publishing 'react-native-quick-crypto' to NPM
31+
$ release-it 0.7.17-cbx.6
32+
33+
🚀 Let's release @coolwallet-app/react-native-quick-crypto (0.7.17-cbx.5...0.7.17-cbx.6)
34+
35+
36+
Empty changelog
37+
38+
✔ bun tsc && bun lint && bun format && bun prepare
39+
? Publish @coolwallet-app/react-native-quick-crypto@cbx to npm? Yes
40+
? Please enter OTP for npm: 513493
41+
🔗 https://registry.npmjs.org/package/@coolwallet-app/react-native-quick-crypto
42+
🏁 Done (in 225s.)
43+
Successfully released QuickCrypto!
44+
```
45+
46+
# Develop flow
47+
48+
- Create pull request into cbx branch
49+
- After the PR merged, publish to npm on cbx branch
50+
- Create git tag and github release
51+
- Example git tag: `v0.7.17-cbx.6`
52+
- Using auto-generate notes from GitHub GUI

package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.7.17",
2+
"version": "0.7.17-cbx.4",
33
"scripts": {
44
"clean": "bun --filter='*' clean",
55
"deepclean": "bun --filter='*' deepclean && del-cli node_modules",
@@ -32,12 +32,6 @@
3232
"tagName": "v${version}",
3333
"requireCleanWorkingDir": false
3434
},
35-
"github": {
36-
"release": true
37-
},
38-
"hooks": {
39-
"before:release": "bun bundle-install && bun pods && git add packages/example/ios/Podfile.lock"
40-
},
4135
"plugins": {
4236
"@release-it/conventional-changelog": {
4337
"preset": {

packages/react-native-quick-crypto/package.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coolwallet-app/react-native-quick-crypto",
3-
"version": "0.7.17",
3+
"version": "0.7.17-cbx.6",
44
"description": "A fast implementation of Node's `crypto` module written in C/C++ JSI",
55
"packageManager": "[email protected]",
66
"main": "lib/commonjs/index",
@@ -107,19 +107,6 @@
107107
},
108108
"hooks": {
109109
"after:bump": "bun tsc && bun lint && bun format && bun prepare"
110-
},
111-
"plugins": {
112-
"@release-it/bumper": {
113-
"out": [
114-
{
115-
"file": "../../packages/example/package.json",
116-
"path": [
117-
"version",
118-
"dependencies.react-native-quick-crypto"
119-
]
120-
}
121-
]
122-
}
123110
}
124111
},
125112
"react-native-builder-bob": {

scripts/release.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ cp README.md packages/react-native-quick-crypto/README.md
1010
cd packages/react-native-quick-crypto
1111
bun release $@
1212

13-
echo "Creating a Git bump commit and GitHub release"
14-
cd ../..
15-
bun run release-it $@
13+
# echo "Creating a Git bump commit and GitHub release"
14+
# cd ../..
15+
# bun run release-it $@
1616

17-
echo "\nSuccessfully released QuickCrypto!"
17+
echo "Successfully released QuickCrypto!"

0 commit comments

Comments
 (0)