Browse Source
Merge pull request #7733 from abpframework/refactor/nightly-builds
Refactored publish script for nightly builds
pull/7742/head
Muhammed Altuğ
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
6 deletions
-
npm/ng-packs/scripts/publish.ts
-
npm/preview-publish.ps1
|
|
|
@ -23,11 +23,7 @@ program.parse(process.argv); |
|
|
|
process.exit(1); |
|
|
|
} |
|
|
|
|
|
|
|
const registry = |
|
|
|
program.registry || |
|
|
|
(program.preview |
|
|
|
? 'https://www.myget.org/F/abp-nightly/auth/8f2a5234-1bce-4dc7-b976-2983078590a9/npm/' |
|
|
|
: 'https://registry.npmjs.org'); |
|
|
|
const registry = program.registry || 'https://registry.npmjs.org'; |
|
|
|
|
|
|
|
try { |
|
|
|
await fse.remove('../dist'); |
|
|
|
|
|
|
|
@ -16,7 +16,7 @@ $Version = $NextVersion; |
|
|
|
} |
|
|
|
|
|
|
|
if(-Not $Registry) { |
|
|
|
$Registry = "https://www.myget.org/F/abp-nightly/auth/8f2a5234-1bce-4dc7-b976-2983078590a9/npm/"; |
|
|
|
exit |
|
|
|
} |
|
|
|
|
|
|
|
$commands = ( |
|
|
|
|