diff options
Diffstat (limited to 'nuget/MyGet.ps1')
-rw-r--r-- | nuget/MyGet.ps1 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nuget/MyGet.ps1 b/nuget/MyGet.ps1 index b3d9c8f778..ad17dea91f 100644 --- a/nuget/MyGet.ps1 +++ b/nuget/MyGet.ps1 @@ -1,8 +1,7 @@ $nuget = $env:NuGet -#parse the version number out of the Jekyll _config.yml -$yaml = (Select-String $env:SourcesPath\_config.yml -pattern "current_version").ToString().Split(" "); -$bsversion = $yaml[$yaml.Length - 1] +#parse the version number out of package.json +$bsversion = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version #create packages & $nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion |