Browse Source

Merge pull request #15311 from abpframework/skoc10/fix-for-windows

Update preview-publish.ps1
pull/15334/head
Engincan VESKE 4 years ago
committed by GitHub
parent
commit
5dace760c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      npm/preview-publish.ps1

16
npm/preview-publish.ps1

@ -1,10 +1,12 @@
param( param(
[string]$Version, [string]$Version,
[string]$Registry [string]$Registry
) )
yarn install yarn install
$NextVersion = $(node publish-utils.js --nextVersion) $NextVersion = $(node publish-utils.js --nextVersion)
$RootFolder = (Get-Item -Path "./" -Verbose).FullName $RootFolder = (Get-Item -Path "./" -Verbose).FullName
@ -16,14 +18,16 @@ if(-Not $Registry) {
exit exit
} }
$commands = ( $commands = (
"cd ng-packs\scripts", "cd ng-packs/scripts",
"yarn", "yarn install",
"npm run publish-packages -- --nextVersion $Version --preview --registry $Registry --skipVersionValidation", "npm run publish-packages -- --nextVersion $Version --preview --registry $Registry --skipVersionValidation",
"cd ../../", "cd ../../",
"npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish", "yarn lerna version $Version --yes --no-commit-hooks --skip-git --force-publish",
"npm run replace-with-tilde", "yarn replace-with-tilde",
"npm run lerna -- exec 'npm publish --registry $Registry --tag preview'" "yarn lerna exec 'npm publish --registry $Registry --tag preview'"
) )
foreach ($command in $commands) { foreach ($command in $commands) {
@ -34,4 +38,4 @@ foreach ($command in $commands) {
Set-Location $RootFolder Set-Location $RootFolder
exit $LASTEXITCODE exit $LASTEXITCODE
} }
} }

Loading…
Cancel
Save