about summary refs log tree commit diff stats
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/justfile b/justfile
index efe492d..fbfbc2e 100644
--- a/justfile
+++ b/justfile
@@ -30,11 +30,19 @@ fix:
 precommit:
 	nix-build -A pre-commit-check
 
+clean-workdir:
+	git diff --no-ext-diff --quiet
+
 changelog:
 	convco changelog -u $(convco version --bump) | \
 		sd -F HEAD $(convco version --print-prefix --bump) | \
 		prettier --stdin-filepath CHANGELOG.md > CHANGELOG.md
 
+release: clean-workdir changelog
+	git add CHANGELOG.md
+	git commit -m "chore: release $(convco version --bump)"
+	git tag $(convco version --bump --print-prefix)
+
 dev:
 	modd