Skip to content

Commit ca29ec0

Browse files
committed
chore: release v0.3.11
1 parent 725e8e3 commit ca29ec0

File tree

3 files changed

+106
-12
lines changed

3 files changed

+106
-12
lines changed

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ resolver = "2"
1212
[workspace.dependencies]
1313
shared = { path = "crates/shared" }
1414
actix-web = "4.9.0"
15-
clap = { version = "4.5.27", features = ["derive"] }
16-
serde = { version = "1.0.219", features = ["derive"] }
17-
tokio = { version = "1.43.0", features = ["full", "macros"] }
18-
uuid = { version = "1.12.1", features = ["v4", "serde"] }
19-
log = { version = "0.4.26" }
20-
env_logger = { version = "0.11.6" }
21-
futures-util = { version = "0.3.31" }
22-
alloy = { version = "0.15.7", features = ["full"] }
23-
alloy-provider = { version = "^0.15.7", features = ["anvil-node"] }
15+
clap = { version = "0.3.11"] }
16+
serde = { version = "0.3.11"] }
17+
tokio = { version = "0.3.11"] }
18+
uuid = { version = "0.3.11"] }
19+
log = { version = "0.3.11" }
20+
env_logger = { version = "0.3.11" }
21+
futures-util = { version = "0.3.11" }
22+
alloy = { version = "0.3.11"] }
23+
alloy-provider = { version = "0.3.11"] }
2424
url = "2.5.4"
2525
serde_json = "1.0.137"
2626
reqwest = "0.12.12"
@@ -37,14 +37,14 @@ redis-test = "0.8.0"
3737
stun = "0.7.0"
3838
mockito = "1.7.0"
3939
iroh = "0.34.1"
40-
rand_v8 = { package = "rand", version = "0.8.5", features = ["std"] }
41-
rand_core_v6 = { package = "rand_core", version = "0.6.4", features = ["std"] }
40+
rand_v8 = { package = "rand", version = "0.3.11"] }
41+
rand_core_v6 = { package = "rand_core", version = "0.3.11"] }
4242
ipld-core = "0.4"
4343
rust-ipfs = "0.14"
4444
cid = "0.11"
4545

4646
[workspace.package]
47-
version = "0.3.10"
47+
version = "0.3.11"
4848
edition = "2021"
4949

5050
[workspace.lints.clippy]

scripts/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
chmod +x scripts/release.sh
2+
3+
./scripts/release.sh patch # for 0.3.10 → 0.3.11
4+
./scripts/release.sh minor # for 0.3.11 → 0.4.0
5+
./scripts/release.sh major # for 0.4.0 → 1.0.0

scripts/release.sh

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
#!/bin/bash
2+
3+
# Simple release script
4+
# Usage: ./scripts/release.sh [patch|minor|major]
5+
6+
set -e
7+
8+
BUMP_TYPE=${1:-patch}
9+
10+
# Colors for output
11+
GREEN='\033[0;32m'
12+
YELLOW='\033[1;33m'
13+
NC='\033[0m' # No Color
14+
15+
echo -e "${YELLOW}Starting release process...${NC}"
16+
17+
# Ensure we're on main
18+
CURRENT_BRANCH=$(git branch --show-current)
19+
if [ "$CURRENT_BRANCH" != "main" ]; then
20+
echo "Error: You must be on main branch to release"
21+
exit 1
22+
fi
23+
24+
# Pull latest
25+
echo "Pulling latest changes..."
26+
git pull origin main
27+
28+
# Get current version
29+
CURRENT_VERSION=$(grep '^version =' Cargo.toml | head -n 1 | cut -d '"' -f 2)
30+
echo "Current version: $CURRENT_VERSION"
31+
32+
# Calculate new version
33+
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"
34+
35+
case "$BUMP_TYPE" in
36+
major)
37+
((MAJOR++))
38+
MINOR=0
39+
PATCH=0
40+
;;
41+
minor)
42+
((MINOR++))
43+
PATCH=0
44+
;;
45+
patch)
46+
((PATCH++))
47+
;;
48+
*)
49+
echo "Invalid bump type. Use: patch, minor, or major"
50+
exit 1
51+
;;
52+
esac
53+
54+
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}"
55+
echo -e "${GREEN}New version: $NEW_VERSION${NC}"
56+
57+
# Update Cargo.toml file
58+
echo "Updating Cargo.toml..."
59+
sed -i.bak "s/version = \".*\"/version = \"${NEW_VERSION}\"/" ./Cargo.toml
60+
61+
# Show changes
62+
echo -e "\n${YELLOW}Changes to be committed:${NC}"
63+
git diff --name-only
64+
65+
# Confirm
66+
echo -e "\n${YELLOW}Ready to release v${NEW_VERSION}. Continue? (y/n)${NC}"
67+
read -r CONFIRM
68+
69+
if [ "$CONFIRM" != "y" ]; then
70+
echo "Release cancelled"
71+
git checkout -- .
72+
exit 0
73+
fi
74+
75+
# Commit and tag
76+
echo "Creating release commit..."
77+
git add Cargo.toml Cargo.lock
78+
git commit -m "chore: release v${NEW_VERSION}"
79+
80+
echo "Pushing to main..."
81+
git push origin main
82+
83+
echo "Creating tag..."
84+
git tag -a "v${NEW_VERSION}" -m "Release v${NEW_VERSION}"
85+
git push origin "v${NEW_VERSION}"
86+
87+
echo -e "\n${GREEN}✅ Release v${NEW_VERSION} created successfully!${NC}"
88+
echo -e "${GREEN}The production release workflow will now run automatically.${NC}"
89+
echo -e "\nView progress at: https://github.com/PrimeIntellect-ai/protocol/actions"

0 commit comments

Comments
 (0)