From af1d96ce56db76c1ad53f51411a06a76b7cf71ff Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Thu, 1 Apr 2021 13:18:11 +0300 Subject: [PATCH] add registry param to publish.ps1 --- npm/publish.ps1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/npm/publish.ps1 b/npm/publish.ps1 index d02f630ff1..cb6272750f 100644 --- a/npm/publish.ps1 +++ b/npm/publish.ps1 @@ -1,5 +1,6 @@ param( - [string]$Version + [string]$Version, + [string]$Registry ) npm install @@ -11,10 +12,12 @@ if (-Not $Version) { $Version = $NextVersion; } -echo $Version +if (-Not $Registry) { + $Registry = "https://registry.npmjs.org"; +} -$NgPacksPublishCommand = "npm run publish-packages -- --nextVersion $Version --skipGit --registry https://registry.npmjs.org'" -$PacksPublishCommand = "npm run lerna -- exec 'npm publish --registry https://registry.npmjs.org'" +$NgPacksPublishCommand = "npm run publish-packages -- --nextVersion $Version --skipGit --registry $Registry" +$PacksPublishCommand = "npm run lerna -- exec 'npm publish --registry $Registry'" $UpdateGulpCommand = "npm run update-gulp" $UpdateNgPacksCommand = "yarn update"