From 0b1bfece6570f43e2600d748f108e340f11fea87 Mon Sep 17 00:00:00 2001 From: selman koc <64414348+skoc10@users.noreply.github.com> Date: Tue, 3 Jan 2023 22:37:38 +0300 Subject: [PATCH] Update preview-publish.ps1 --- npm/preview-publish.ps1 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/npm/preview-publish.ps1 b/npm/preview-publish.ps1 index cdf8a5478c..eafd032229 100644 --- a/npm/preview-publish.ps1 +++ b/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 } -} \ No newline at end of file +}