1 Star 0 Fork 7

衣沾不足惜 / gitee-release-cli-2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

gitee-release-cli

npm npm gitee-release-cli

介绍

一个用于创建发行版的命令行工具。

特性

安装

npm install -g gitee-release-cli

使用

先前往私人令牌页页创建一个令牌,然后配置:

gitee-release config accessToken 你的令牌

设置使用中文版的内容(只翻译标题):

gitee-release config locale zh_CN

创建一个发行版:

# 创建发行版,然后提示是否上传发行版到码云
gitee-release create

# 创建一个 beta 预发行版
gitee-release create --prerelease beta

# 生成版本号后运行 npm version 更新版本号,然后运行 git push 推送改动内容
gitee-release create --with-npm-version --with-git-push --upload

如果觉得手动输入这些命令太麻烦,可在 package.json 中添加以下内容:

{
    "scripts": {
        "release": "gitee-release create --with-npm-version --with-git-push --upload",
        "release-beta": "npm run release -- --prerelease beta",
    }
}

小徽标

将此徽标包含在 README.md 自述文件中,可以让他人知道你的项目是使用 gitee-release-cli 发布的。

gitee-release-cli

[![gitee-release-cli](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-gitee--release-blueviolet.svg)](https://gitee.com/gitee-frontend/gitee-release-cli)

常见问题

  • 我为什么要选择 gitee-release-cli 而不是 semantic-release?

    如果你懒得看 semantic-release 的英文说明文档的话,可以先试试 gitee-release-cli。

  • 对代码库里的提交信息格式有什么要求?

    需要遵循 commitlint 的提交信息规范。

许可

基于 MIT 许可协议发布。

The MIT License (MIT) Copyright (c) 2019 Gitee.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

发行版生成工具 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/stringify/gitee-release-cli-2.git
git@gitee.com:stringify/gitee-release-cli-2.git
stringify
gitee-release-cli-2
gitee-release-cli-2
master

搜索帮助