Skip to content

Commit 444bdcc

Browse files
authored
fix: more release changes (#539)
1 parent 3252011 commit 444bdcc

File tree

6 files changed

+85
-31
lines changed

6 files changed

+85
-31
lines changed

bun.lockb

-6.73 KB
Binary file not shown.

example/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"android": "react-native run-android",
88
"ios": "react-native run-ios",
9+
"bundle-install": "bundle install",
910
"clean": "del-cli android/build android/app/build ios/build lib",
1011
"tsc": "tsc --noEmit",
1112
"typescript": "tsc --noEmit",

package.json

+44-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313
"format": "bun --filter='*' format",
1414
"format:fix": "bun --filter='*' format:fix",
1515
"prepare": "bun --filter=\"react-native-quick-crypto\" prepare",
16-
"pre-release": "./scripts/prepare-release.sh",
17-
"release": "bun pre-release && release-it --github.release=false"
16+
"release": "./scripts/release.sh"
1817
},
1918
"devDependencies": {
2019
"@release-it/bumper": "^6.0.1",
21-
"@release-it/conventional-changelog": "^8.0.1",
22-
"release-it": "^17.6.0"
20+
"@release-it/conventional-changelog": "^9.0.3",
21+
"release-it": "^17.10.0"
2322
},
2423
"packageManager": "[email protected]",
2524
"release-it": {
@@ -34,13 +33,51 @@
3433
"github": {
3534
"release": true
3635
},
36+
"hooks": {
37+
"before:release": "bun example bundle-install && bun example pods && git add example/ios/Podfile.lock"
38+
},
3739
"plugins": {
3840
"@release-it/bumper": {
39-
"out": "package.json"
41+
"out": [
42+
{
43+
"file": "packages/react-native-nitro-image/package.json",
44+
"path": "version"
45+
},
46+
{
47+
"file": "example/package.json",
48+
"path": "version"
49+
}
50+
]
51+
},
52+
"@release-it/conventional-changelog": {
53+
"preset": {
54+
"name": "conventionalcommits",
55+
"types": [
56+
{
57+
"type": "feat",
58+
"section": "✨ Features"
59+
},
60+
{
61+
"type": "perf",
62+
"section": "💨 Performance Improvements"
63+
},
64+
{
65+
"type": "fix",
66+
"section": "🐛 Bug Fixes"
67+
},
68+
{
69+
"type": "chore(deps)",
70+
"section": "🛠️ Dependency Upgrades"
71+
},
72+
{
73+
"type": "docs",
74+
"section": "📚 Documentation"
75+
}
76+
]
77+
}
4078
}
4179
}
42-
},
43-
"workspaces": [
80+
}, "workspaces": [
4481
"packages/react-native-quick-crypto",
4582
"example"
4683
]

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

+21-21
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88
"types": "lib/typescript/index.d.ts",
99
"react-native": "src/index",
1010
"source": "src/index",
11+
"scripts": {
12+
"clean": "del-cli android/build lib",
13+
"tsc": "tsc --noEmit",
14+
"typescript": "tsc --noEmit",
15+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
16+
"lint:fix": "eslint \"**/*.{js,ts,tsx}\" --fix",
17+
"format": "prettier --check \"**/*.{js,ts,tsx}\"",
18+
"format:fix": "prettier --write \"**/*.{js,ts,tsx}\"",
19+
"prepare": "bun clean && bun tsc && bob build",
20+
"release": "release-it",
21+
"specs": "nitro-codegen",
22+
"test": "jest"
23+
},
1124
"files": [
1225
"src",
1326
"lib",
@@ -27,19 +40,6 @@
2740
"!**/__fixtures__",
2841
"!**/__mocks__"
2942
],
30-
"scripts": {
31-
"clean": "del-cli android/build lib",
32-
"tsc": "tsc --noEmit",
33-
"typescript": "tsc --noEmit",
34-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
35-
"lint:fix": "eslint \"**/*.{js,ts,tsx}\" --fix",
36-
"format": "prettier --check \"**/*.{js,ts,tsx}\"",
37-
"format:fix": "prettier --write \"**/*.{js,ts,tsx}\"",
38-
"prepare": "bun clean && bob build",
39-
"release": "release-it",
40-
"specs": "nitro-codegen",
41-
"test": "jest"
42-
},
4343
"keywords": [
4444
"react-native",
4545
"ios",
@@ -56,7 +56,8 @@
5656
},
5757
"authors": [
5858
"Szymon Kapała <[email protected]>",
59-
"Marc Rousavy <[email protected]> (https://github.com/mrousavy)"
59+
"Marc Rousavy <[email protected]> (https://github.com/mrousavy)",
60+
"Brad Anderson <[email protected]> (https://github.com/boorad)"
6061
],
6162
"license": "MIT",
6263
"bugs": {
@@ -77,19 +78,19 @@
7778
},
7879
"devDependencies": {
7980
"@eslint/compat": "^1.1.1",
80-
"@eslint/js": "10.0.0",
81+
"@eslint/js": "9.16.0",
8182
"@release-it/bumper": "6.0.1",
8283
"@types/jest": "29.5.11",
8384
"@types/node": "22.0.0",
8485
"@types/react": "18.3.3",
8586
"@types/readable-stream": "4.0.11",
86-
"del-cli": "5.1.0",
87+
"del-cli": "6.0.0",
8788
"eslint": "9.9.0",
8889
"eslint-plugin-react-native": "^4.1.0",
8990
"jest": "29.7.0",
9091
"nitro-codegen": "0.18.1",
9192
"prettier": "3.3.3",
92-
"react-native-builder-bob": "0.30.0",
93+
"react-native-builder-bob": "0.33.3",
9394
"release-it": "17.6.0",
9495
"typescript": "5.1.6",
9596
"typescript-eslint": "^8.1.0"
@@ -106,10 +107,9 @@
106107
"github": {
107108
"release": false
108109
},
109-
"plugins": {
110-
"@release-it/bumper": {
111-
"out": "package.json"
112-
}
110+
"hooks": {
111+
"before:init": "bun tsc && bun lint && bun format",
112+
"after:bump": "bun prepare"
113113
}
114114
},
115115
"react-native-builder-bob": {

scripts/prepare-release.sh

-3
This file was deleted.

scripts/release.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
echo "Starting the release process..."
4+
echo "Provided options: $@"
5+
6+
echo "Publishing 'react-native-quick-crypto' to NPM"
7+
cp README.md packages/react-native-quick-crypto/README.md
8+
cd packages/react-native-quick-crypto
9+
bun release $@
10+
11+
echo "Bumping version on example app"
12+
cd ../../example
13+
bun release $@
14+
15+
echo "Creating a Git bump commit and GitHub release"
16+
cd ../
17+
bun run release-it $@
18+
19+
echo "Successfully released QuickCrypto!"

0 commit comments

Comments
 (0)