加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
monorepo-builder.php 2.24 KB
一键复制 编辑 原始数据 按行查看 历史
yaozm 提交于 2024-05-23 17:15 . style: apply php-cs-fixer
<?php
declare(strict_types=1);
/**
* Copyright (c) 2019-2024 guanguans<ityaozm@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/guanguans/music-dl
*/
use Guanguans\MonorepoBuilderWorker\CreateGithubReleaseReleaseWorker;
use Guanguans\MonorepoBuilderWorker\Support\EnvironmentChecker;
use Guanguans\MonorepoBuilderWorker\UpdateChangelogViaGoReleaseWorker;
use Guanguans\MonorepoBuilderWorker\UpdateChangelogViaNodeReleaseWorker;
use Guanguans\MonorepoBuilderWorker\UpdateChangelogViaPhpReleaseWorker;
use Symplify\MonorepoBuilder\Config\MBConfig;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\AddTagToChangelogReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\PushNextDevReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\PushTagReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\SetCurrentMutualDependenciesReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\SetNextMutualDependenciesReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\TagVersionReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\UpdateBranchAliasReleaseWorker;
use Symplify\MonorepoBuilder\Release\ReleaseWorker\UpdateReplaceReleaseWorker;
return static function (MBConfig $mbConfig): void {
require __DIR__.'/vendor/autoload.php';
$mbConfig->defaultBranch('master');
/**
* release workers - in order to execute.
*
* @see https://github.com/symplify/monorepo-builder#6-release-flow
*/
$mbConfig->workers($workers = [
// UpdateReplaceReleaseWorker::class,
// SetCurrentMutualDependenciesReleaseWorker::class,
// AddTagToChangelogReleaseWorker::class,
TagVersionReleaseWorker::class,
PushTagReleaseWorker::class,
UpdateChangelogViaGoReleaseWorker::class,
// UpdateChangelogViaNodeReleaseWorker::class,
// UpdateChangelogViaPhpReleaseWorker::class,
CreateGithubReleaseReleaseWorker::class,
// SetNextMutualDependenciesReleaseWorker::class,
// UpdateBranchAliasReleaseWorker::class,
// PushNextDevReleaseWorker::class,
]);
EnvironmentChecker::checks($workers);
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化