|
|
|
@ -3,9 +3,10 @@ param( |
|
|
|
[string]$Registry |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
yarn install |
|
|
|
|
|
|
|
$commands = ( |
|
|
|
".\publish-mvc.ps1 $Version $Registry", |
|
|
|
".\publish-ng.ps1 $Version $Registry" |
|
|
|
); |
|
|
|
|
|
|
|
$NextVersion = $(node publish-utils.js --nextVersion) |
|
|
|
$RootFolder = (Get-Item -Path "./" -Verbose).FullName |
|
|
|
@ -18,22 +19,10 @@ if(-Not $Registry) { |
|
|
|
exit |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$commands = ( |
|
|
|
"cd ng-packs/scripts", |
|
|
|
"yarn install", |
|
|
|
"npm run publish-packages -- --nextVersion $Version --preview --registry $Registry --skipVersionValidation", |
|
|
|
"cd ../../", |
|
|
|
"yarn lerna version $Version --yes --no-commit-hooks --skip-git --force-publish", |
|
|
|
"yarn replace-with-tilde", |
|
|
|
"yarn lerna exec 'npm publish --registry $Registry --tag preview'" |
|
|
|
) |
|
|
|
|
|
|
|
foreach ($command in $commands) { |
|
|
|
Write-Host $command |
|
|
|
Invoke-Expression $command |
|
|
|
if($LASTEXITCODE -ne '0' -And $command -notlike '*cd *'){ |
|
|
|
if($LASTEXITCODE -ne '0' -And $command -notlike '*cd *') { |
|
|
|
Write-Host ("Process failed! " + $command) |
|
|
|
Set-Location $RootFolder |
|
|
|
exit $LASTEXITCODE |
|
|
|
|