From 0e0e3fb9110dcdd9b9e32f2ac7eff0f5220914b4 Mon Sep 17 00:00:00 2001 From: hanzhiwei Date: Fri, 25 Aug 2023 10:37:27 +0800 Subject: [PATCH] chore(release): v1.2.0 --- .cz-config.js | 1 + .release-it.json | 24 ++++++++++-------------- docs/changelog.md | 2 +- package.json | 5 +++-- 4 files changed, 15 insertions(+), 17 deletions(-) diff --git a/.cz-config.js b/.cz-config.js index 42a29ab..42937b0 100644 --- a/.cz-config.js +++ b/.cz-config.js @@ -2,6 +2,7 @@ module.exports = { types: [ { value: '🚀 新增 ', name: '新增: 新的内容' }, + { value: '📦 版本 ', name: '新增: 发布新的版本' }, { value: '🐛 修复 ', name: '修复: 修复一个Bug' }, { value: '📝 文档 ', name: '文档: 变更的只有文档' }, { value: '🏠 格式 ', name: '格式: 空格, 分号等格式修复' }, diff --git a/.release-it.json b/.release-it.json index c2df1ca..9c81d1b 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,25 +1,21 @@ { "git": { - "tag": true, - "tagName": "v${version}", - "tagAnnotation": "Release %s", - "commit": true, - "commitMessage": "版本更新: release %s", - "commitArgs": ["-S"], + "commitMessage": "chore(release): v${version}", "push": true, - "pushArgs": ["--follow-tags"], - "requireCleanWorkingDir": false, - "requireCommits": false + "commit": true, + "tag": true, + "requireCommits": false, + "requireCleanWorkingDir": false }, "github": { "release": true, - "allowSameVersion": true, - "ignoreVersion": true, "draft": false }, "npm": { - "publish": true, - "allowSameVersion": true, - "ignoreVersion": true + "publish": false, + "ignoreVersion": false + }, + "hooks": { + "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}." } } diff --git a/docs/changelog.md b/docs/changelog.md index 6a63879..e293b87 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,7 +4,7 @@ lastUpdated: true outline: 1 --- -# 🌈 1.0.0 **(2023-08-24)** +# 🌈 1.2.0 **(2023-08-24)** ## 🚀 新增 diff --git a/package.json b/package.json index 99298f1..251fcb4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warbler-js", - "version": "1.0.0", + "version": "1.2.0", "description": "A JavaScript utility library , JavaScript 实用工具库", "main": "src/index.js", "scripts": { @@ -14,7 +14,8 @@ "preview": "vitepress preview docs", "release:major": "release-it --increment major", "release:minor": "release-it --increment minor", - "release:patch": "release-it --increment patch" + "release:patch": "release-it --increment patch", + "release": "release-it --release-as 1.2.0" }, "keywords": [ "JavaScript",