From 4a7d438463bdc02ee72e973143ff5bdd8d238a02 Mon Sep 17 00:00:00 2001 From: 8baller <8ball030@gmail.com> Date: Thu, 1 Feb 2024 10:16:01 +0000 Subject: [PATCH] [feat] added auto-releaser --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index af9b695..7bd9356 100644 --- a/Makefile +++ b/Makefile @@ -13,3 +13,11 @@ all: fmt lint tests test-docs: echo making docs + +release: + $(eval current_version := $(shell poetry run tbump current-version)) + @echo "Current version is $(current_version)" + $(eval new_version := $(shell python -c "import semver; print(semver.bump_patch('$(current_version)'))")) + @echo "New version is $(new_version)" + poetry run tbump $(new_version) +