-
Notifications
You must be signed in to change notification settings - Fork 5
/
monorepo-builder.php
28 lines (24 loc) · 1.01 KB
/
monorepo-builder.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php declare(strict_types=1);
use Symplify\MonorepoBuilder\Config\MBConfig;
use Symplify\MonorepoBuilder\Release\ReleaseWorker;
use Tribe\Libs\Dev\Monorepo\ReleaseWorker\AddUnreleasedChangelogSection;
use Tribe\Libs\Dev\Monorepo\ReleaseWorker\UpdateRootBranchAlias;
return static function ( MBConfig $config ): void {
$config->packageDirectories( [
__DIR__ . '/src',
] );
// This should be updated if you're making a new major branch, e.g. `5.x`
$config->defaultBranch( '4.x' );
// Release workers, execute in the order they appear here.
$config->workers( [
ReleaseWorker\SetCurrentMutualDependenciesReleaseWorker::class,
ReleaseWorker\AddTagToChangelogReleaseWorker::class,
ReleaseWorker\TagVersionReleaseWorker::class,
ReleaseWorker\PushTagReleaseWorker::class,
ReleaseWorker\SetNextMutualDependenciesReleaseWorker::class,
AddUnreleasedChangelogSection::class,
UpdateRootBranchAlias::class,
ReleaseWorker\UpdateBranchAliasReleaseWorker::class,
ReleaseWorker\PushNextDevReleaseWorker::class,
] );
};