selman koc
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
6 deletions
-
npm/preview-publish.ps1
|
|
|
@ -1,10 +1,12 @@ |
|
|
|
param( |
|
|
|
[string]$Version, |
|
|
|
[string]$Registry |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
yarn install |
|
|
|
|
|
|
|
|
|
|
|
$NextVersion = $(node publish-utils.js --nextVersion) |
|
|
|
$RootFolder = (Get-Item -Path "./" -Verbose).FullName |
|
|
|
|
|
|
|
@ -16,14 +18,16 @@ if(-Not $Registry) { |
|
|
|
exit |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$commands = ( |
|
|
|
"cd ng-packs\scripts", |
|
|
|
"yarn", |
|
|
|
"cd ng-packs/scripts", |
|
|
|
"yarn install", |
|
|
|
"npm run publish-packages -- --nextVersion $Version --preview --registry $Registry --skipVersionValidation", |
|
|
|
"cd ../../", |
|
|
|
"npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish", |
|
|
|
"npm run replace-with-tilde", |
|
|
|
"npm run lerna -- exec 'npm publish --registry $Registry --tag preview'" |
|
|
|
"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) { |
|
|
|
@ -34,4 +38,4 @@ foreach ($command in $commands) { |
|
|
|
Set-Location $RootFolder |
|
|
|
exit $LASTEXITCODE |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|