mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
Cleaner version parsing
Changed LESS to Less and author to Twitter, Inc.
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user