File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
param (
2
2
[string ]$version = " latest"
3
3
)
4
- $global :build = $env: buildVersion -ne $null ? $env: buildVersion : $version
5
-
6
- Write-Host " Build: $build "
4
+ if (-not $env: buildVersion ) {
5
+ $global :buildVersion = " latest"
6
+ } else {
7
+ $global :buildVersion = $env: buildVersion
8
+ }
9
+ Write-Host " Build: $buildVersion "
7
10
$global :errorCode = 0
8
11
9
12
function Process-JavaScriptProjects {
@@ -30,7 +33,7 @@ function Process-JavaScriptProjects {
30
33
31
34
Write-Host " `n Updating packages..."
32
35
foreach ($package in $ ($folder.Packages )) {
33
- $command = " npm install $package @$global :build --save"
36
+ $command = " npm install $package @$global :buildVersion --save"
34
37
Write-Output " Running: $command "
35
38
Invoke-Expression $command
36
39
}
@@ -81,7 +84,7 @@ function Process-DotNetProjects {
81
84
}
82
85
}
83
86
84
- Write-Host " Version: $version "
87
+ Write-Host " Version: $buildVersion "
85
88
Process - JavaScriptProjects
86
89
Process - DotNetProjects
87
90
You can’t perform that action at this time.
0 commit comments