next_version=32
full_version="1.0.0-beta.${next_version}"

# ✅ Update package version to full beta version
sed -i '' -E "s/(\"version\": \")1\.0\.0-beta\.[0-9]+\"/\1${full_version}\"/" package.json

# ✅ Update nodality dependency in package.json to ^1.0.0-beta.xx
sed -i '' -E "s/(\"nodality\": \")\^1\.0\.0-beta\.[0-9]+\"/\1\\^${full_version}\"/" package.json

# ✅ Update hardcoded nodality version in bin/index.js
sed -i '' -E "s/(nodality: \\\")\^1\.0\.0-beta\.[0-9]+(\\\")/\1\\^${full_version}\2/" bin/index.js
