basic-tag
v0.0.4
Published
` import createTag from 'basic-tag' createTag({ // 自定义版本号 version: 'v1.0.0',
Downloads
2
Readme
自动生成tag
使用
1. 下载npm包basic-tag
2. 引入
`
import createTag from 'basic-tag'
createTag({
// 自定义版本号
version: 'v1.0.0',
// 当前分支
branch: 'dev',
// tag信息
msg: 'v1.0.0',
// 是否使用邮箱通知
email: 1,
})
`
大致流程:
1. 生成版本号
支持用户输入 + 默认版本号
2. 获取当前分支
支持用户输入 + 获取当前分支
3. 根据当前分支获取最新commit提交信息
支持用户输入 + 获取当前分支commit提交信息
4. 获取项目地址
5. 生成tag
6. 通知功能
支持邮箱 + 企业微信群机器人,默认企业微信群机器人
发布包
1. 切换镜像源
nrm use npm
2. 增加版本号
npm version patch
3. 登录
npm login
4. 发布
npm publish