From 6f322ea832e040ac20038d4540eaab705c4942e8 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..bf5358e 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 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 +