Skip to content

Commit

Permalink
Bump to dev version
Browse files Browse the repository at this point in the history
  • Loading branch information
flanakin committed Nov 28, 2023
1 parent 433c819 commit da82586
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ftk",
"version": "0.1.1",
"version": "0.1.2-dev.0",
"description": "Starter kits, scripts, and advanced solutions to accelerate your FinOps journey in the Microsoft Cloud.",
"main": "index.js",
"directories": {
Expand Down
16 changes: 11 additions & 5 deletions src/scripts/Update-Version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,32 @@ param
)

$update = if ($Major) { "major" } elseif ($Minor) { "minor" } elseif ($Patch) { "patch" } elseif ($Prerelease) { "prerelease" }
if ($update) {
if ($update)
{
Write-Verbose "Updating $update version."
} elseif ($Version) {
}
elseif ($Version)
{
$update = $Version
Write-Verbose "Updating to version $update."
}

$newLabel = if (-not $Label) { "dev" } else { $Label.ToLower() -replace '[^a-z]', '' }
if ($update -eq "prerelease") {
if ($update -eq "prerelease")
{
Write-Verbose "Using label '$newLabel'."
}

# Only update version if requested
if ($update -or $Version) {
if ($update -or $Version)
{
$null = npm --no-git-tag-version --preid $newLabel version $update
}

$ver = & "$PSScriptRoot/Get-Version"

if ($update -or $Version) {
if ($update -or $Version)
{
Write-Verbose "Updated to version $ver."
}

Expand Down

0 comments on commit da82586

Please sign in to comment.