Skip to content

Commit

Permalink
ci: fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Mar 4, 2024
1 parent 2aff338 commit bfbc7ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ files=(
"js/Cargo.toml"
)
sed -i "s/^version = \"[0-9]*\.[0-9]*\.[0-9]*\"\$/version = \"$new_version\"/" "Cargo.toml"
for file in "${files[@]}"; do
if [ -f "$file" ]; then
sed -i "s/nanopub = { version = \"[0-9]*\.[0-9]*\.[0-9]*\"/nanopub = { version = \"$new_version\"/" "$file"
echo "🔼 Updated version in $file"
else
echo "⚠️ File not found: $file"
fi
done
git cliff -o CHANGELOG.md --tag $new_version
git add Cargo.toml */Cargo.toml CHANGELOG.md
git commit -S -m "chore: Bump version to $new_version"
Expand Down

0 comments on commit bfbc7ac

Please sign in to comment.