mirror of https://github.com/abpframework/abp.git
2 changed files with 36 additions and 12 deletions
@ -1,10 +1,31 @@ |
|||||
& cd ng-packs\scripts |
param( |
||||
& npm install |
[string]$Version |
||||
& yarn publish-packages patch |
) |
||||
& cd ../../ |
|
||||
& yarn |
if(-Not $Version) { |
||||
& yarn lerna publish patch --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version --force-publish |
echo 'Please pass a semantic version like this: ./publish.ps1 -Version patch' |
||||
& yarn update:templates |
exit |
||||
& yarn global add gulp |
} |
||||
& yarn gulp:app |
|
||||
& yarn gulp:module |
$rootFolder = (Get-Item -Path "./" -Verbose).FullName |
||||
|
|
||||
|
$commands = ( |
||||
|
"cd ng-packs\scripts", |
||||
|
"npm install", |
||||
|
"npm run publish-packages -- $Version", |
||||
|
"cd ../../", |
||||
|
"yarn", |
||||
|
"yarn lerna publish $Version --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version --force-publish", |
||||
|
"yarn gulp:app", |
||||
|
"yarn gulp:module" |
||||
|
) |
||||
|
|
||||
|
foreach ($command in $commands) { |
||||
|
Write-Host $command |
||||
|
Invoke-Expression $command |
||||
|
if($LASTEXITCODE -ne '0' -And $command -notlike '*cd *'){ |
||||
|
Write-Host ("Process failed! " + $command) |
||||
|
Set-Location $rootFolder |
||||
|
exit $LASTEXITCODE |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue