diff --git a/npm/preview-publish.ps1 b/npm/preview-publish.ps1 index 61c68e10b0..cdf8a5478c 100644 --- a/npm/preview-publish.ps1 +++ b/npm/preview-publish.ps1 @@ -1,12 +1,9 @@ param( [string]$Version, - [string]$User, - [string]$Pass, - [string]$Email, [string]$Registry ) -npm install +yarn install $NextVersion = $(node publish-utils.js --nextVersion) $RootFolder = (Get-Item -Path "./" -Verbose).FullName @@ -21,8 +18,8 @@ exit $commands = ( "cd ng-packs\scripts", - "npm install", - "npm run publish-packages -- --nextVersion $Version --preview --registry $Registry", + "yarn", + "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",