diff --git a/.versionrc.js b/.versionrc.js index 8944766..c031c61 100644 --- a/.versionrc.js +++ b/.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\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 + } } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index cc31638..712bbd8 100644 --- a/package.json +++ b/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" @@ -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": "安装依赖预执行脚本", @@ -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",