leviy/release-tool 问题修复 & 功能扩展

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

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

leviy/release-tool

Composer 安装命令:

composer require leviy/release-tool

包简介

Command line tool for releasing new versions of a project

README 文档

README

Leviy logo

Release Tool

Inspired by Liip RMT, this release tool helps you to automate the release of new versions of your software. It is written in PHP but can be used for any type of project, as long as you have PHP installed on your machine.

Test License GitHub release Required PHP version

Features

  • Determines the next version number based on semantic versioning
  • Creates an annotated Git tag and pushes it to the remote repository
  • Creates a GitHub release with the name of the release and a changelog with changes since the previous version
  • Supports pre-release (alpha/beta/rc) versions

Installation

Phar (recommended)

The recommended method of installing this package is using a phar file. This is because installing using Composer can possibly cause dependency conflicts. You can download the most recent phar from the Github Releases page.

Global installation (linux)

Move the downloaded release-tool.phar file into your PATH (e.g. ~/bin/release-tool). Make sure to set the file to executable permissions (e.g. chmod 775 release-tool).

Composer

Alternatively, you can install this package using Composer:

composer require --dev leviy/release-tool

Configuration

GitHub personal access token

This tool requires a personal access token with repo scope to create GitHub releases. Create one here and store it in .release-tool/auth.yml in your home folder (~ on Linux, user folder on Windows):

credentials:
  github:
    token: <token>

Usage

Note: these usage instructions assume that you have downloaded the release-tool.phar file to your project directory. If you have installed it in a different location, update the commands accordingly. If you have installed the tool as a Composer dependency, use vendor/bin/release instead.

Releasing a new version

Use release-tool.phar release <version> to release a version. For example:

release-tool.phar release 1.0.0

This will release version 1.0.0. By default, this will create a prefixed, annotated Git tag, in this case v1.0.0.

Automatically generating a version number

After tagging a first version, you can let the tool calculate the new version number for you based on the current version and a number of questions. To do so, omit the version from the previous command:

release-tool.phar release

Pre-release versions

If you want to create a pre-release (alpha/beta/rc) version, run:

release-tool.phar release --pre-release

Other commands

Run release-tool.phar list to see a list of available commands.

Updating the release tool

The following command will update the release tool to the latest version:

release-tool.phar self-update

统计信息

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

GitHub 信息

  • Stars: 49
  • Watchers: 6
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固