diff options
author | Alan Pearce | 2024-07-13 17:18:41 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-13 17:22:25 +0200 |
commit | b01f342c77e72c3c3bdd6e4d4757f912f7960dc3 (patch) | |
tree | 1a1e00d271eb92c409d5a4a25b71c08d35230a48 | |
parent | b1fd7104004b9646f541afbc0add3047dbff59a7 (diff) | |
download | searchix-b01f342c77e72c3c3bdd6e4d4757f912f7960dc3.tar.lz searchix-b01f342c77e72c3c3bdd6e4d4757f912f7960dc3.tar.zst searchix-b01f342c77e72c3c3bdd6e4d4757f912f7960dc3.zip |
build: update nix package version number automatically
-rw-r--r-- | justfile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/justfile b/justfile index 94b90ee..46c927a 100644 --- a/justfile +++ b/justfile @@ -38,8 +38,11 @@ changelog: 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) |