File tree Expand file tree Collapse file tree 4 files changed +38
-26
lines changed
packages/react-native-quick-crypto Expand file tree Collapse file tree 4 files changed +38
-26
lines changed Original file line number Diff line number Diff line change @@ -17,5 +17,36 @@ bun install
1717
1818``` bash
1919npm 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
Original file line number Diff line number Diff line change 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" ,
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" : {
Original file line number Diff line number Diff line change 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" ,
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" : {
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ cp README.md packages/react-native-quick-crypto/README.md
1010cd packages/react-native-quick-crypto
1111bun 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!"
You can’t perform that action at this time.
0 commit comments