当前位置:网站首页>Standard Version (release and changelog Automation)
Standard Version (release and changelog Automation)
2022-07-19 08:00:00 【huangpb0624】
We can use standard-version Automate version management , Including updates CHANGELOG.md, And the use of git tag. It will also be automatically modified package.json Inside version.
In the use of standard-version Before , Need to follow Conventional Commit Specifications To standardize commit message To write . This is because standard-version Is based on commit Type to update the version number (feature Will update minor, bug fix Will update patch, BREAKING CHANGES Will update major).
here , We can use commitizen To standardize commit message To write , Specific configuration process See .
commitizen After configuration , We can start to configure standard-version 了 .
1. install
npm install -D standard-version2. stay package.json Script the response in :
"scripts": {
"release": "standard-version"
} For reasonable use standard-version, First of all, we need git add . file , And then execute npm run commit Submit , Finally, execute npm run release.
After execution, it will be automatically generated in the project root directory CHANGELOG.md file .
CHANGELOG.md To configure
By default ,standard-version Only in CHANGELOG.md It's recorded in feat and fix Submission of type . If you want to record other types of submissions , The following steps are required :
- Create a file named... At the root of the project
.versionrcThe file of , Paste and copy the content :
{
"types": [
{"type": "chore", "section":"Others", "hidden": false},
{"type": "revert", "section":"Reverts", "hidden": false},
{"type": "feat", "section": "Features", "hidden": false},
{"type": "fix", "section": "Bug Fixes", "hidden": false},
{"type": "improvement", "section": "Feature Improvements", "hidden": false},
{"type": "docs", "section":"Docs", "hidden": false},
{"type": "style", "section":"Styling", "hidden": false},
{"type": "refactor", "section":"Code Refactoring", "hidden": false},
{"type": "perf", "section":"Performance Improvements", "hidden": false},
{"type": "test", "section":"Tests", "hidden": false},
{"type": "build", "section":"Build System", "hidden": false},
{"type": "ci", "section":"CI", "hidden":false}
]
}
"type"commit type"section"Different commit Type CHANGELOG.md Area in"hidden"Whether in CHANGELOG.md It shows that
Reference resources : Use commitizen and standard-version automation JavaScript Project version control - Simple books
边栏推荐
- Use of mongodb
- Jd.com's purchase intention forecast (III)
- Pytorch随记(1)
- How to write the highlights of SCI papers (seriously teach you how to write)
- Niuke topic - house raiding 1, house raiding 2
- 分叉币的发展史及价值|ETH、BCH、BSV 2020-03-08
- JS array intersection, subtraction and union
- 修改滚动条样式
- Visual Studio 生产环境配置方案:SlowCheetah
- 目标检测和边界框
猜你喜欢

Visual Studio 生产环境配置方案:SlowCheetah

机器学习之随机森林

Xilinx ultrascale+ MPSoC (zu9eg/zu15eg) high performance PCIe data preprocessing board

泰坦尼克号乘客获救预测(进阶)

JS array intersection, subtraction and union

Pytoch notes (3)

redis分布式锁

Beijing Jiewen technology, an acquiring outsourcing service provider, transferred 60% of its shares for about 480million

VMware cloud director 10.4 release (including download) - cloud computing provisioning and management platform

Jira --- workflow call external api
随机推荐
Spark3.x entry to mastery - stage 7 (spark dynamic resource allocation)
PCIe bus architecture high performance data preprocessing board / K7 325t FMC interface data acquisition and transmission card
KingbaseES 中可以通过构造一个聚集函数来实现mysql的any_value功能。
Flowable query, complete, void, delete tasks
redis分布式锁
How to associate the application on enterprise wechat with the Sybase database of the store
Beijing Jiewen technology, an acquiring outsourcing service provider, transferred 60% of its shares for about 480million
Modify scroll bar style
《牛客刷题》sql错题集
[MySQL] transaction: basic knowledge of transaction, implementation principle of MySQL transaction, detailed explanation of transaction log redolog & undo
Semiconductor material technology
FMC sub card: 4-way sfp+ 10 Gigabit optical fiber network FMC sub card
Convolutional neural network CNN
【特征工程】
收单外包服务商北京捷文科技以约4.8亿转让60%股份
企业微信上的应用如何与门店的sybase数据库关联
Pytoch notes (1)
the max_ iter was reached which means the coef_ did not converge “the coef_ did not converge“
Pytorch notes (5)
【day01】前言、入门程序、常量变量