Update version in both templates

This commit is contained in:
Bjarke Berg
2021-03-23 18:29:07 +01:00
parent da539b27c9
commit 4a8d033d24

View File

@@ -144,17 +144,17 @@ stages:
$ubuild.SetUmbracoVersion($continuous)
#Update the version in template also
$templatePath =
'build/templates/UmbracoSolution/.template.config/template.json'
#Update the version in templates also
$templatePath ='build/templates/UmbracoSolution/.template.config/template.json'
$a = Get-Content $templatePath -raw | ConvertFrom-Json
$a.symbols.version.defaultValue = $continuous
$a | ConvertTo-Json -depth 32| set-content $templatePath
$templatePath = 'build/templates/UmbracoPackage/.template.config/template.json'
$a = Get-Content $templatePath -raw | ConvertFrom-Json
$a.symbols.version.defaultValue = $continuous
$a | ConvertTo-Json -depth 32| set-content $templatePath
Write-Host "Building: $continuous"
- task: PowerShell@1