Browse Source

reorder publish script steps

pull/8345/head
mehmet-erim 5 years ago
parent
commit
1c957c180a
  1. 13
      npm/publish.ps1

13
npm/publish.ps1

@ -11,9 +11,12 @@ if (-Not $Version) {
$Version = $NextVersion;
}
$NgPacksPublishCommand = "npm run publish-packages -- --nextVersion $Version --skipGit"
echo $Version
$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'"
$UpdateGulpCommand = "npm run update-gulp"
$UpdateNgPacksCommand = "yarn update"
$IsRc = $(node publish-utils.js --rc) -eq "true";
@ -21,16 +24,18 @@ if ($IsRc) {
$NgPacksPublishCommand += " --rc"
$UpdateGulpCommand += " -- --rc"
$PacksPublishCommand = $PacksPublishCommand.Substring(0, $PacksPublishCommand.Length - 1) + " --tag next'"
$UpdateNgPacksCommand += " --rc"
}
$commands = (
"npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish",
"npm run replace-with-tilde",
$PacksPublishCommand,
$UpdateNgPacksCommand,
"cd ng-packs\scripts",
"npm install",
$NgPacksPublishCommand,
"cd ../../",
"npm run lerna -- version $Version --yes --no-commit-hooks --skip-git --force-publish",
"npm run replace-with-tilde",
$PacksPublishCommand,
"cd scripts",
"yarn",
"yarn remove-lock-files",

Loading…
Cancel
Save