Skip to content

Commit

Permalink
chore: add just command to bump versions using sed
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleystachurski committed Aug 9, 2024
1 parent 193df54 commit 5c4be24
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions justfile.fedimint.just
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,10 @@ docs: build-docs
$open_cmd "$fallback_index_path" || true
fi
release-bump-version VERSION="prerelease":
cargo workspaces version --all --exact --no-git-commit --yes --force '*' --pre-id rc {{VERSION}}

release-bump-version-custom VERSION:
cargo workspaces version --all --exact --no-git-commit --yes --force '*' custom {{VERSION}}
# Bump all versions
# ex: `just bump-version 0.5.0-alpha 0.5.0-rc.0`
bump-version FROM_VERSION TO_VERSION:
find . -name 'Cargo.toml' -exec sed -i 's/{{FROM_VERSION}}/{{TO_VERSION}}/g' {} +

cargo_sort_defaults := "-w -g --order package,features,bin,lib,test,bench,dependencies,dev-dependencies,build-dependencies"

Expand Down

0 comments on commit 5c4be24

Please sign in to comment.