Browse Source

Update preview-publish.ps1

pull/15311/head
selman koc 3 years ago
committed by GitHub
parent
commit
0b1bfece65
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(
[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
}
}
}

Loading…
Cancel
Save