Browse Source

reorder publish script steps

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

13
npm/publish.ps1

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

Loading…
Cancel
Save