mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-02-28 07:59:13 +00:00
add bump task
This commit is contained in:
parent
fc75bc2020
commit
b41001f4a9
@ -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}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user