~alanpearce/searchix

b01f342c77e72c3c3bdd6e4d4757f912f7960dc3 — Alan Pearce 4 months ago b1fd710
build: update nix package version number automatically
1 files changed, 5 insertions(+), 2 deletions(-)

M justfile
M justfile => justfile +5 -2
@@ 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)