mirror of https://github.com/abpframework/abp.git
8 changed files with 92 additions and 23 deletions
@ -1,6 +1,10 @@ |
|||
echo "`n-----=====[ CREATING NUGET PACKAGES ]=====-----`n" |
|||
. ..\nupkg\common.ps1 |
|||
Write-Info "Creating NuGet packages" |
|||
|
|||
echo "`n-----=====[ CREATING NUGET PACKAGES ]=====-----`n" |
|||
cd ..\nupkg |
|||
powershell -File pack.ps1 |
|||
|
|||
echo "`n-----=====[ CREATING NUGET PACKAGES COMPLETED ]=====-----`n" |
|||
|
|||
Write-Info "Creating NuGet packages completed" |
|||
cd ..\deploy #always return to the deploy directory |
|||
@ -0,0 +1,39 @@ |
|||
param( |
|||
[string]$npmAuthToken |
|||
) |
|||
|
|||
. ..\nupkg\common.ps1 |
|||
|
|||
if (!$npmAuthToken) |
|||
{ |
|||
#reading password from file content |
|||
$passwordFileName = "npm-auth-token.txt" |
|||
$pathExists = Test-Path -Path $passwordFileName -PathType Leaf |
|||
if ($pathExists) |
|||
{ |
|||
$npmAuthToken = Get-Content $passwordFileName |
|||
echo "Using NPM Auth Token from $passwordFileName ..." |
|||
} |
|||
} |
|||
|
|||
if (!$npmAuthToken) |
|||
{ |
|||
$npmAuthToken = Read-Host "Enter the NPM Auth Token" |
|||
} |
|||
|
|||
cd ..\npm |
|||
|
|||
#---------------------------------------------------------------------------- |
|||
|
|||
echo "`nSetting npmjs.org auth-token token`n" |
|||
npm set //registry.npmjs.org/:_authToken $npmAuthToken |
|||
|
|||
#---------------------------------------------------------------------------- |
|||
|
|||
Write-Info "Pushing MVC packages to NPM" |
|||
echo "`n-----=====[ PUSHING MVC PACKS TO NPM ]=====-----`n" |
|||
powershell -File publish-ng.ps1 |
|||
echo "`n-----=====[ PUSHING MVC PACKS TO NPM COMPLETED ]=====-----`n" |
|||
Write-Info "Pushing MVC packages to NPM completed" |
|||
|
|||
cd ..\deploy #always return to the deploy directory |
|||
@ -1,8 +1,14 @@ |
|||
. ..\nupkg\common.ps1 |
|||
|
|||
cd .. |
|||
|
|||
Write-Info "Committing changes to GitHub" |
|||
echo "`n-----=====[ COMMITTING CHANGES ]=====-----`n" |
|||
git add . |
|||
git commit -m Update_NPM_Package_Versions |
|||
git push |
|||
|
|||
echo "`n-----=====[ COMMITTING CHANGES COMPLETED ]=====-----`n" |
|||
Write-Info "Committing changes to GitHub completed" |
|||
|
|||
cd deploy #always return to the deploy directory |
|||
Loading…
Reference in new issue