Skip to content

Commit

Permalink
ci: 优化版本流程
Browse files Browse the repository at this point in the history
  • Loading branch information
chufan committed Sep 4, 2023
1 parent 09d6f2c commit 7611fa6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
40 changes: 20 additions & 20 deletions .versionrc.js
@@ -1,24 +1,24 @@
## commit-and-tag-version 配置,参考:https://github.com/conventional-changelog/conventional-changelog-config-spec/tree/master/versions/2.2.0
{
// commit-and-tag-version 配置,参考:https://github.com/conventional-changelog/standard-version
module.exports={
"header": "# Change Log\n\nAll notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n<!-- #region recent-beta -->\n",
"releaseCommitMessageFormat": "chore(release): publish v{{currentTag}}",
"types": [
{ "type": "feat", "section": "Features" },
{ "type": "feature", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "revert", "section": "Reverts" },
{ "type": "docs", "section": "Documentation", "hidden": true },
{ "type": "style", "section": "Styles", "hidden": true },
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "build", "section": "Build System", "hidden": true },
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
],
"skip": {
"bump": true,
"commit": true,
"tag": true
}
{ "type": "feat", "section": "Features" },
{ "type": "feature", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "revert", "section": "Reverts" },
{ "type": "docs", "section": "Documentation", "hidden": true },
{ "type": "style", "section": "Styles", "hidden": true },
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "build", "section": "Build System", "hidden": true },
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
],
"skip": {
"bump": true,
"commit": true,
"tag": true
}
}
Empty file added CHANGELOG.md
Empty file.
9 changes: 7 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "408CSFamily",
"description": "专业代号408,计算机基础知识点合集",
"version": "0.0.1-alpha01",
"version": "0.0.1-alpha.0",
"engines": {
"node": "16.x || 18.x",
"pnpm": ">=7.2.1"
Expand All @@ -26,7 +26,10 @@
"version:patch": "npm version patch",
"lint": "eslint --ext .js,.vue,.ts --ignore-path .gitignore .",
"lintfix": "eslint --fix --ext .js,.ts,.vue --ignore-path .gitignore .",
"clean": "find . -name \"node_modules\" -type d -exec rm -rf '{}' +"
"clean": "find . -name \"node_modules\" -type d -exec rm -rf '{}' + ",
"release": "commit-and-tag-version",
"release:test": "bumpp --preid alpha",
"release:bump": "bumpp --preid alpha -r --execute=\"pnpm commit-and-tag-version && git add CHANGELOG.md\" --commit \"chore(release): publish v%s\" --all --tag --push"
},
"scripts-info": {
"prepare": "安装依赖预执行脚本",
Expand All @@ -44,6 +47,8 @@
"clean": "快速删除本地依赖"
},
"devDependencies": {
"commit-and-tag-version": "11.2.3",
"bumpp": "^9.2.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vuepress/client": "2.0.0-beta.61",
Expand Down

0 comments on commit 7611fa6

Please sign in to comment.