andriichuk/releaser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andriichuk/releaser

最新稳定版本:0.1.3

Composer 安装命令:

composer require andriichuk/releaser

包简介

Release automation script for Laravel projects

README 文档

README

A small Bash-based release helper for PHP projects. It automates release branch creation, version updates, and post-release branch syncing using simple CLI arguments. The script performs the following steps:

  • Switch to the main development branch and pull the latest changes
  • Optionally run tests and composer audit to ensure code quality
  • Ask for release version and create a release branch
  • Optionally update application version in config/app.php
  • Commit and push the release branch to the remote repository
  • Wait for the user merge the release branch via Pull/Merge Request (merge detected by checking the main branch for the release version in config/app.php)
  • Create a git tag for the new release version and push it to the remote repository
  • Merge the main branch into specified post-release branches to keep them up-to-date

Requirements

  • Bash
  • Git
  • PHP (local or containerized)
  • Composer (local or containerized)

Installation

composer require andriichuk/releaser --dev

Usage

./vendor/bin/releaser \
  --php-cmd="./vendor/bin/sail php" \
  --composer-cmd="./vendor/bin/sail composer" \
  --main-branch=main \
  --main-dev-branch=develop

Arguments

Argument Default Description
--php-cmd php PHP command or wrapper to execute (e.g. php, ./vendor/bin/sail php, docker exec -T app php)
--composer-cmd composer Composer command (e.g. composer, ./vendor/bin/sail composer, docker exec -T app composer)
--git-remote-name origin Git remote name used for fetch, pull, and push
--main-branch main Primary production branch
--main-dev-branch develop Development branch used for ongoing work
--release-branch-prefix release/ Prefix for release branches
--with-app-version-update false Whether to update application version in config/app.php file. Please note that the file must exists and contain the 'version' key.
--post-release-update-branches $main-dev-branch Comma-separated list of branches to update after release (e.g. develop,stage, by default value from --main-dev-branch will be used)
--with-tests true Whether to run tests before creating a release
--with-composer-audit true Whether to run composer audit before creating a release
--commit-msg-template Release v{{version}} Template for the commit message after making any changes in the release branch (only {{version} placeholder supported)

TODO

  • Release notes generation based on commit messages
  • Main branch name detection
  • Latest version detection based on git tags or config/app.php file
  • Linters (PHPStan, Dumps checker, Pint, Native PHP Linter, OpenAPI doc validation, JS production bundle generation, etc.)

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Shell

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-19