mirror of https://github.com/abpframework/abp
parent
061027bda5
commit
7d2b195de9
@ -0,0 +1,3 @@
|
|||||||
|
const fse = require("fs-extra");
|
||||||
|
|
||||||
|
console.log(fse.readJSONSync("package.json").version);
|
@ -0,0 +1,29 @@
|
|||||||
|
param(
|
||||||
|
[string]$Version
|
||||||
|
)
|
||||||
|
|
||||||
|
$NextVersion = $(node get-version.js) + '-preview' + (Get-Date).tostring(“yyyyMMdd”)
|
||||||
|
$rootFolder = (Get-Item -Path "./" -Verbose).FullName
|
||||||
|
|
||||||
|
if(-Not $Version) {
|
||||||
|
$Version = $NextVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
$commands = (
|
||||||
|
"cd ng-packs\scripts",
|
||||||
|
"npm install",
|
||||||
|
"npm run publish-packages -- --nextVersion $Version --preview",
|
||||||
|
"cd ../../",
|
||||||
|
"yarn",
|
||||||
|
"yarn lerna publish $Version --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version --force-publish --dist-tag preview"
|
||||||
|
)
|
||||||
|
|
||||||
|
foreach ($command in $commands) {
|
||||||
|
Write-Host $command
|
||||||
|
Invoke-Expression $command
|
||||||
|
if($LASTEXITCODE -ne '0' -And $command -notlike '*cd *'){
|
||||||
|
Write-Host ("Process failed! " + $command)
|
||||||
|
Set-Location $rootFolder
|
||||||
|
exit $LASTEXITCODE
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue