Skip to content

Commit 2db0a91

Browse files
authored
fix: releases with workspaces (#532)
1 parent cb591c5 commit 2db0a91

File tree

4 files changed

+33
-36
lines changed

4 files changed

+33
-36
lines changed

bun.lockb

0 Bytes
Binary file not shown.

example/package.json

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-quick-crypto-example",
3-
"version": "1.0.0",
3+
"version": "1.0.0-beta.5",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -16,7 +16,8 @@
1616
"start": "react-native start",
1717
"pods": "RCT_NEW_ARCH_ENABLED=1 bundle exec pod install --project-directory=ios",
1818
"build:android": "cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
19-
"build:ios": "cd ios && xcodebuild -workspace QuickCrytpExample.xcworkspace -scheme QuickCrytpExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO"
19+
"build:ios": "cd ios && xcodebuild -workspace QuickCrytpExample.xcworkspace -scheme QuickCrytpExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
20+
"release": "release-it"
2021
},
2122
"dependencies": {
2223
"@craftzdog/react-native-buffer": "6.0.5",
@@ -33,7 +34,7 @@
3334
"react-native-bouncy-checkbox": "4.0.1",
3435
"react-native-nitro-modules": "0.14.0",
3536
"react-native-quick-base64": "2.1.2",
36-
"react-native-quick-crypto": "workspace:*",
37+
"react-native-quick-crypto": "1.0.0-beta.5",
3738
"react-native-safe-area-context": "4.14.0",
3839
"react-native-screens": "3.35.0",
3940
"react-native-vector-icons": "^10.1.0",
@@ -72,5 +73,22 @@
7273
},
7374
"engines": {
7475
"node": ">=18"
76+
},
77+
"release-it": {
78+
"npm": {
79+
"publish": false
80+
},
81+
"git": false,
82+
"github": {
83+
"release": false
84+
},
85+
"plugins": {
86+
"@release-it/bumper": {
87+
"out": {
88+
"file": "package.json",
89+
"path": ["dependencies.react-native-quick-crypto"]
90+
}
91+
}
92+
}
7593
}
7694
}

package.json

+5-30
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0-beta.3",
2+
"version": "1.0.0-beta.5",
33
"scripts": {
44
"check-all": "./scripts/clang-format.sh",
55
"clean": "bun --filter='*' clean",
@@ -14,16 +14,15 @@
1414
"format:fix": "bun --filter='*' format:fix",
1515
"prepare": "bun --filter=\"react-native-quick-crypto\" prepare",
1616
"pre-release": "./scripts/prepare-release.sh",
17-
"release-git": "bun pre-release && release-it",
18-
"release-npm": "bun pre-release && cd packages/react-native-quick-crypto && release-it"
17+
"release": "bun pre-release && release-it --github.release=false"
1918
},
2019
"workspaces": [
2120
"packages/react-native-quick-crypto",
2221
"example"
2322
],
2423
"devDependencies": {
25-
"@release-it/conventional-changelog": "^8.0.1",
2624
"@release-it/bumper": "^6.0.1",
25+
"@release-it/conventional-changelog": "^8.0.1",
2726
"release-it": "^17.6.0"
2827
},
2928
"packageManager": "[email protected]",
@@ -40,32 +39,8 @@
4039
"release": true
4140
},
4241
"plugins": {
43-
"@release-it/conventional-changelog": {
44-
"preset": {
45-
"name": "conventionalcommits",
46-
"types": [
47-
{
48-
"type": "feat",
49-
"section": "✨ Features"
50-
},
51-
{
52-
"type": "perf",
53-
"section": "💨 Performance Improvements"
54-
},
55-
{
56-
"type": "fix",
57-
"section": "🐛 Bug Fixes"
58-
},
59-
{
60-
"type": "chore(deps)",
61-
"section": "🛠️ Dependency Upgrades"
62-
},
63-
{
64-
"type": "docs",
65-
"section": "📚 Documentation"
66-
}
67-
]
68-
}
42+
"@release-it/bumper": {
43+
"out": "package.json"
6944
}
7045
}
7146
}

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

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-quick-crypto",
3-
"version": "1.0.0-beta.3",
3+
"version": "1.0.0-beta.5",
44
"description": "A fast implementation of Node's `crypto` module written in C/C++ JSI",
55
"type": "module",
66
"main": "lib/commonjs/index",
@@ -36,7 +36,7 @@
3636
"format": "prettier --check \"**/*.{js,ts,tsx}\"",
3737
"format:fix": "prettier --write \"**/*.{js,ts,tsx}\"",
3838
"prepare": "bun clean && bob build",
39-
"release-it": "bun prepare && release-it",
39+
"release": "release-it",
4040
"specs": "nitro-codegen",
4141
"test": "jest"
4242
},
@@ -106,7 +106,11 @@
106106
"github": {
107107
"release": false
108108
},
109-
"plugins": {}
109+
"plugins": {
110+
"@release-it/bumper": {
111+
"out": "package.json"
112+
}
113+
}
110114
},
111115
"react-native-builder-bob": {
112116
"source": "src",

0 commit comments

Comments
 (0)