Browse Source

npm-cli-login added for preview npm publish

pull/3064/head
Arkat Erol 7 years ago
parent
commit
754185d3e2
  1. 13
      npm/preview-publish.ps1

13
npm/preview-publish.ps1

@ -1,5 +1,9 @@
param( param(
[string]$Version [string]$Version,
[string]$User,
[string]$Pass,
[string]$Email,
[string]$Registry
) )
npm install npm install
@ -11,12 +15,17 @@ if(-Not $Version) {
$Version = $NextVersion; $Version = $NextVersion;
} }
if(-Not $Registry) {
$Registry = "http://localhost:4873";
}
$commands = ( $commands = (
"npm-cli-login -u $User -p $Pass -e $Email -r $Registry"
"cd ng-packs\scripts", "cd ng-packs\scripts",
"npm install", "npm install",
"npm run publish-packages -- --nextVersion $Version --preview", "npm run publish-packages -- --nextVersion $Version --preview",
"cd ../../", "cd ../../",
"yarn lerna publish $Version --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version --force-publish --dist-tag preview --registry http://localhost:4873" "yarn lerna publish $Version --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version --force-publish --dist-tag preview --registry $Registry"
) )
foreach ($command in $commands) { foreach ($command in $commands) {

Loading…
Cancel
Save