From b41001f4a9064297eff5342fff783712e48cb19e Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 19 Feb 2026 09:17:38 +0000 Subject: [PATCH] add bump task --- Taskfile.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Taskfile.yaml b/Taskfile.yaml index 0e8ac22..ee5ff62 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -9,3 +9,16 @@ tasks: cmds: - echo "Running tests..." - pwsh -c "tests\run.ps1 {{.CLI_ARGS}}" + + bump: + desc: 'Bump the module version in the .psd1 file. Usage: "task bump -- show" or "task bump -- [patch|minor|major]".' + preconditions: + - sh: 'pwsh -c "if (Get-Command bump) { exit 0 } else { exit 1 }"' + msg: "The 'bump' command is not available. Please install the required tools to use this command." + cmds: + - | + {{if eq .CLI_ARGS "show"}} + pwsh -c "bump show -f lib/Voicemeeter.psd1 -p \"ModuleVersion\s*=\s'(\d+\.\d+\.\d+)'\"" + {{else}} + pwsh -c "bump {{.CLI_ARGS}} -w -f lib/Voicemeeter.psd1 -p \"ModuleVersion\s*=\s'(\d+\.\d+\.\d+)'\"" + {{end}}