Skip to content

Commit

Permalink
Merge pull request fedimint#5824 from bradleystachurski/just-bump-ver…
Browse files Browse the repository at this point in the history
…sion

chore: add just command to bump versions using sed
  • Loading branch information
dpc authored Aug 9, 2024
2 parents 7aa8c79 + 5c4be24 commit cae1f0c
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 cae1f0c

Please sign in to comment.