[Meta] Add Monorepo Builder (#5669)

This commit is contained in:
Abdul Malik Ikhsan 2021-02-27 18:37:07 +07:00 committed by GitHub
parent 3bb327e797
commit c480e0468c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View File

@ -73,9 +73,10 @@
"symfony/security-http": "^5.2",
"symplify/changelog-linker": "^9.2.1",
"symplify/coding-standard": "^9.2.1",
"symplify/easy-coding-standard": "^9.2.1",
"symplify/easy-ci": "^9.1.0",
"symplify/easy-coding-standard": "^9.2.1",
"symplify/easy-testing": "^9.2.1",
"symplify/monorepo-builder": "^9.2",
"symplify/phpstan-extensions": "^9.2.1",
"symplify/phpstan-rules": "^9.2.1",
"tracy/tracy": "^2.8"
@ -323,7 +324,8 @@
"vendor/bin/ecs check-markdown docs/rector_rules_overview.md docs/nodes_overview.md --ansi --fix"
],
"rector-ci": "bin/rector process --dry-run --ansi",
"rector": "bin/rector process --ansi"
"rector": "bin/rector process --ansi",
"release": "vendor/bin/monorepo-builder release patch --ansi"
},
"config": {
"sort-packages": true

19
monorepo-builder.php Normal file
View File

@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\AddTagToChangelogReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\PushNextDevReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\PushTagReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\TagVersionReleaseWorker;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
# release workers - in order to execute
$services->set(AddTagToChangelogReleaseWorker::class);
$services->set(TagVersionReleaseWorker::class);
$services->set(PushTagReleaseWorker::class);
$services->set(PushNextDevReleaseWorker::class);
};