From 1f0bc9f295539b2a0049a751acf031ba3cef777c Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 22 Sep 2024 14:33:49 +0100 Subject: [PATCH] build: add prep-release recipe to justfile --- cliff.toml | 0 justfile | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 cliff.toml diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..e69de29 diff --git a/justfile b/justfile index b5b393b..1f17dea 100644 --- a/justfile +++ b/justfile @@ -6,3 +6,17 @@ test path repo: GITHUB_REPOSITORY=kemitix/{{ repo }} \ GITHUB_SERVER_URL=https://git.kemitix.net \ cargo run + +next_version := `git-cliff --bumped-version | cut -b 2-` + +@next: + echo "Next version: {{ next_version }}" + +prep-release: + jj new -m"chore: release {{ next_version }}" + cargo set-version "{{ next_version }}" + git-cliff -o CHANGELOG.md --bump + echo "Check CHANGELOG.md for next version" + jj diff + jj status +