build: add prep-release recipe to justfile
All checks were successful
Test / checks (map[name:stable]) (push) Successful in 1m27s
Test / checks (map[name:nightly]) (push) Successful in 1m55s

This commit is contained in:
Paul Campbell 2024-09-22 14:33:49 +01:00
parent 941116704d
commit 6f322ea832
2 changed files with 14 additions and 0 deletions

0
cliff.toml Normal file
View file

View file

@ -6,3 +6,17 @@ test path repo:
GITHUB_REPOSITORY=kemitix/{{ repo }} \ GITHUB_REPOSITORY=kemitix/{{ repo }} \
GITHUB_SERVER_URL=https://git.kemitix.net \ GITHUB_SERVER_URL=https://git.kemitix.net \
cargo run cargo run
next_version := `git-cliff --bumped-version | cut -b 2-`
@next:
echo "Next version: {{ next_version }}"
prep-release:
jj new -m"chore: release v{{ next_version }}"
cargo set-version "{{ next_version }}"
git-cliff -o CHANGELOG.md --bump
echo "Check CHANGELOG.md for next version"
jj diff
jj status