Skip to content

Commit

Permalink
Merge branch 'dev-5' into 5.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Jun 20, 2024
2 parents 93681e7 + aa89b6f commit 0405733
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions monorepo-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@

use Symplify\MonorepoBuilder\ComposerJsonManipulator\ValueObject\ComposerJsonSection;
use Symplify\MonorepoBuilder\Config\MBConfig;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\AddTagToChangelogReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\PushNextDevReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\SetCurrentMutualDependenciesReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\SetNextMutualDependenciesReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\UpdateBranchAliasReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\UpdateReplaceReleaseWorker;

return static function (MBConfig $mbConfig): void {
$mbConfig->packageDirectories([__DIR__ . '/plugins']);
$version = (!empty($_SERVER['argv'][2]))?: null;
$version = (!empty($_SERVER['argv'][2]))?: '';
if(!$version) return;
$mbConfig->packageDirectoriesExcludes([
__DIR__ . '/plugins/BcThemeSample',
Expand All @@ -27,7 +23,7 @@
],
]);

if(preg_match('/^[0-9]+\.[0-9]+\.[0-9]+$/', $version)) {
if(preg_match('/^([0-9]+\.[0-9]+\.[0-9]+|patch)$/', $version)) {
/**
* 正式リリース
* タグの送信とマスタの送信
Expand All @@ -36,16 +32,12 @@
$mbConfig->workers([
UpdateReplaceReleaseWorker::class,
SetCurrentMutualDependenciesReleaseWorker::class,
AddTagToChangelogReleaseWorker::class,
SetNextMutualDependenciesReleaseWorker::class,
UpdateBranchAliasReleaseWorker::class,
PushNextDevReleaseWorker::class
]);
} elseif(preg_match('/^[0-9]+\.[0-9]+\.[0-9]+-(alpha|beta|rc)/', $version)) {
/**
* alpha / beta / rc
* タグの送信のみ
*/
$mbConfig->defaultBranch('dev');
$mbConfig->defaultBranch('dev-5');
}
};

0 comments on commit 0405733

Please sign in to comment.