chore: add bumpversion

This commit is contained in:
technofab 2025-06-12 14:54:37 +02:00
parent 69e0f7a419
commit 3cb2f8cf80
No known key found for this signature in database
3 changed files with 33 additions and 0 deletions

18
flake.lock generated
View file

@ -217,6 +217,23 @@
"type": "github"
}
},
"nix-devtools": {
"locked": {
"dir": "lib",
"lastModified": 1739971859,
"narHash": "sha256-DaY11jX7Lraw7mRUIsgPsO+aSkkewQe2D+WMZORTNPE=",
"owner": "technofab",
"repo": "nix-devtools",
"rev": "b4f059657de5ac2569afd69a8f042614d309e6bb",
"type": "gitlab"
},
"original": {
"dir": "lib",
"owner": "technofab",
"repo": "nix-devtools",
"type": "gitlab"
}
},
"nix-mkdocs": {
"locked": {
"dir": "lib",
@ -352,6 +369,7 @@
"devenv": "devenv",
"flake-parts": "flake-parts_2",
"mkdocs-material-umami": "mkdocs-material-umami",
"nix-devtools": "nix-devtools",
"nix-mkdocs": "nix-mkdocs",
"nixpkgs": "nixpkgs_4",
"nixtest": "nixtest",

View file

@ -8,6 +8,7 @@
imports = [
inputs.devenv.flakeModule
inputs.treefmt-nix.flakeModule
inputs.nix-devtools.flakeModule
inputs.nix-mkdocs.flakeModule
inputs.nixtest.flakeModule
./lib/flakeModule.nix
@ -52,6 +53,18 @@
};
};
};
bumpversion = {
enable = true;
current_version = "2.0.1";
commit = true;
tag = true;
message = "bump: {current_version} {new_version}";
file = {
"flake.nix".formats = [''current_version = "{version}";''];
"lib/VERSION".formats = ["{version}"];
};
};
};
doc = {
path = ./docs;
@ -283,6 +296,7 @@
systems.url = "github:nix-systems/default-linux";
devenv.url = "github:cachix/devenv";
treefmt-nix.url = "github:numtide/treefmt-nix";
nix-devtools.url = "gitlab:technofab/nix-devtools?dir=lib";
nix-mkdocs.url = "gitlab:technofab/nixmkdocs?dir=lib";
mkdocs-material-umami.url = "gitlab:technofab/mkdocs-material-umami";
nixtest.url = "gitlab:technofab/nixtest/1.0.0?dir=lib";

1
lib/VERSION Normal file
View file

@ -0,0 +1 @@
2.0.1