Browse Source

add registry param to publish.ps1

pull/8345/head
mehmet-erim 6 years ago
parent
commit
af1d96ce56
  1. 11
      npm/publish.ps1

11
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"

Loading…
Cancel
Save