Browse Source

change publish commands

pull/16725/head
Mahmut Gundogdu 3 years ago
parent
commit
99e2d9c5ed
  1. 7
      npm/ng-packs/scripts/publish.ts
  2. 17
      npm/publish-ng.ps1

7
npm/ng-packs/scripts/publish.ts

@ -31,11 +31,6 @@ program.parse(process.argv);
try { try {
await fse.remove('../dist/packages'); await fse.remove('../dist/packages');
await execa('yarn', ['install'], { stdout: 'inherit', cwd: '../' });
await updateVersion(program.nextVersion);
return;
if (!program.skipVersionValidation) { if (!program.skipVersionValidation) {
await execa( await execa(
'yarn', 'yarn',
@ -106,7 +101,7 @@ async function updateVersion(version: string) {
await execa( await execa(
'yarn', 'yarn',
['update-version', 'abpVersion', version], ['update-version', version],
{ stdout: 'inherit', cwd: '../' }, { stdout: 'inherit', cwd: '../' },
); );

17
npm/publish-ng.ps1

@ -15,9 +15,9 @@ if (-Not $Version) {
if (-Not $Registry) { if (-Not $Registry) {
$Registry = "https://registry.npmjs.org"; $Registry = "https://registry.npmjs.org";
} }
$UpdateNgPacksCommand = "yarn update ./ng-packs abp --registry $Registry" $UpdateNgPacksCommand = "yarn update-version $Version"
$NgPacksPublishCommand = "npm run publish-packages -- --nextVersion $Version --skipGit --registry $Registry --skipVersionValidation" $NgPacksPublishCommand = "npm run publish-packages -- --nextVersion $Version --skipGit --registry $Registry --skipVersionValidation"
$UpdateGulpCommand = "yarn update-gulp --registry $Registry" #$UpdateGulpCommand = "yarn update-gulp --registry $Registry"
$IsPrerelease = $(node publish-utils.js --prerelease --customVersion $Version) -eq "true"; $IsPrerelease = $(node publish-utils.js --prerelease --customVersion $Version) -eq "true";
@ -28,16 +28,17 @@ if ($IsPrerelease) {
} }
$commands = ( $commands = (
"cd ng-packs\scripts", "cd ng-packs",
"yarn install",
$UpdateNgPacksCommand,
"cd scripts",
"yarn install", "yarn install",
# $UpdateNgPacksUpdateVersionCommand,
#"yarn remove-tilde-or-caret",
$NgPacksPublishCommand, $NgPacksPublishCommand,
"cd ../../", "cd ../../",
"cd scripts", "cd scripts",
"yarn remove-lock-files", "yarn remove-lock-files"
"cd .." # "cd ..",
#$UpdateGulpCommand # $UpdateGulpCommand
) )
foreach ($command in $commands) { foreach ($command in $commands) {

Loading…
Cancel
Save