Skip to content

Commit

Permalink
chore: fix the release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Test User committed Jan 20, 2025
1 parent 1991f91 commit 0b5a865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ echo "Bumping version to: $NEW_VERSION"

# 4. Generate/Update CHANGELOG using cargo-cliff
# Make sure cargo-cliff is installed (cargo install cargo-cliff)
cargo cliff --tag "v${NEW_VERSION}" --output CHANGELOG.md
git cliff --tag "v${NEW_VERSION}" --output CHANGELOG.md

# 5. Update Cargo.toml
sed -i.bak "s/^version *= *\"${CURRENT_VERSION}\"/version = \"${NEW_VERSION}\"/" Cargo.toml
rm -f Cargo.toml.bak

# 6. Update Cargo.lock (so that if your package references itself, it's updated)
cargo update -p "$(cargo pkgid | sed 's|.*#||')"
cargo update -p yek

# 7. Commit changes
git add Cargo.toml Cargo.lock CHANGELOG.md
Expand Down

0 comments on commit 0b5a865

Please sign in to comment.