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 |
|||
& npm install |
|||
& yarn publish-packages patch |
|||
& cd ../../ |
|||
& yarn |
|||
& yarn lerna publish patch --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version --force-publish |
|||
& yarn update:templates |
|||
& yarn global add gulp |
|||
& yarn gulp:app |
|||
& yarn gulp:module |
|||
param( |
|||
[string]$Version |
|||
) |
|||
|
|||
if(-Not $Version) { |
|||
echo 'Please pass a semantic version like this: ./publish.ps1 -Version patch' |
|||
exit |
|||
} |
|||
|
|||
$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