build: update nix package version number automatically
Alan Pearce alan@alanpearce.eu
Sat, 13 Jul 2024 17:18:41 +0200
1 files changed, 5 insertions(+), 2 deletions(-)
jump to
M justfile → justfile
@@ -38,8 +38,11 @@ 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 +update-nix-package-version: + sd 'version = "[^"]+"' "version = \"$(convco version --bump)\"" nix/package.nix + +release: clean-workdir changelog update-nix-package-version + git add CHANGELOG.md nix/package.nix git commit -m "chore: release $(convco version --bump)" git tag $(convco version --bump --print-prefix)