From ee3f9d3191d845dde6d9b2783015b7a022969b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=87=E5=BD=AC?= Date: Wed, 7 Oct 2020 10:29:28 +0800 Subject: [PATCH] ci: add github after release --- .github/release-drafter.yml | 34 ++++++++++++++++++++++++++++++++++ CHANGELOG.md | 22 +++++----------------- build/script/changelog.ts | 3 +-- package.json | 18 +++++++++++++++++- yarn.lock | 5 +++++ 5 files changed, 62 insertions(+), 20 deletions(-) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..f66e4b22 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,34 @@ +name-template: 'release-v$NEXT_PATCH_VERSION' +tag-template: 'release-v$NEXT_PATCH_VERSION' +categories: + - title: 'Features' + labels: + - 'feat' + - title: 'Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: 'Performance' + labels: + - 'chore' + - 'perf' + - 'style' + - 'refactor' + - 'revert' + - 'wip' + - title: 'Ci' + labels: + - 'ci' + - 'build' + - 'init' + - title: 'Docs' + labels: + - 'docs' + - 'build' + - 'init' + - 'workflow' +change-template: '- $TITLE (#$NUMBER) @$AUTHOR' +template: | + # Changes + $CHANGES diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a27585d..bc0c3066 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,21 +1,9 @@ -# 2.0.0 (2020-09-28) +# [2.0.0-beta.1](https://github.com/anncwb/vue-vben-admin/compare/351f60a...2.0.0-beta.1) (2020-09-30) -### Features +### 🎫 Chores -- add 37afeff -- add menu ab58829 -- add menu aeb75e7 -- add split menu 6b2b7bd -- add split menu 2e7cb0b -- add split menu 58fa70e -- add split menu aa87a2c -- auth d36878e -- header be36cc2 -- prettier 3f1db50 +- add Readme.md ([351f60a](https://github.com/anncwb/vue-vben-admin/commit/351f60a)) -### Performance Improvements +### 🐛 Bug Fixes -- form 2f94a5d -- loading 788fd64 -- lockpage 92d6b7e -- menu ae6ace8 +- fix form,transition,build bug ([2f268ca](https://github.com/anncwb/vue-vben-admin/commit/2f268ca)) diff --git a/build/script/changelog.ts b/build/script/changelog.ts index d34011c2..19d6d448 100644 --- a/build/script/changelog.ts +++ b/build/script/changelog.ts @@ -5,8 +5,7 @@ import chalk from 'chalk'; const createChangeLog = async () => { try { - let cmd = `conventional-changelog -p angular -i CHANGELOG.md -s -r 0 `; - // let cmd = `conventional-changelog -p angular -i CHANGELOG.md -s -r 0 `; + let cmd = `conventional-changelog -p custom-config -i CHANGELOG.md -s -r 0 `; // if (shell.which('git')) { // cmd += '&& git add CHANGELOG.md'; // } diff --git a/package.json b/package.json index 8d9cf673..59727d7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vben-admin-2.0", - "version": "2.0.0-beta.1", + "version": "2.0.0-beta.2", "scripts": { "bootstrap": "yarn install", "serve": "ts-node --project ./build/tsconfig.json ./build/script/preserve && cross-env NODE_ENV=development vite", @@ -58,6 +58,7 @@ "babel-plugin-import": "^1.13.0", "commitizen": "^4.2.1", "conventional-changelog-cli": "^2.1.0", + "conventional-changelog-custom-config": "^0.3.1", "cross-env": "^7.0.2", "dotenv": "^8.2.0", "eslint": "^7.10.0", @@ -92,6 +93,21 @@ "vite-plugin-purge-icons": "^0.4.1", "vue-eslint-parser": "^7.1.0" }, + "repository": { + "type": "git", + "url": "git+https://github.com/anncwb/vue-vben-admin.git" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/anncwb/vue-vben-admin/issues" + }, + "homepage": "https://github.com/anncwb/vue-vben-admin", + "changelog": { + "bugsUrl": "https://github.com/anncwb/vue-vben-admin/issues", + "emojis": true, + "authorName": false, + "authorEmail": false + }, "husky": { "hooks": { "pre-commit": "ls-lint && lint-staged", diff --git a/yarn.lock b/yarn.lock index 9718e27b..974fd9d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1889,6 +1889,11 @@ conventional-changelog-core@^4.2.0: shelljs "^0.8.3" through2 "^3.0.0" +conventional-changelog-custom-config@^0.3.1: + version "0.3.1" + resolved "https://registry.npm.taobao.org/conventional-changelog-custom-config/download/conventional-changelog-custom-config-0.3.1.tgz#4a6433138d602a2b7ecc81729feb6fa1855bff7b" + integrity sha1-SmQzE41gKit+zIFyn+tvoYVb/3s= + conventional-changelog-ember@^2.0.8: version "2.0.8" resolved "https://registry.npm.taobao.org/conventional-changelog-ember/download/conventional-changelog-ember-2.0.8.tgz#f0f04eb7ff3c885af97db100865ab95dcfa9917f" -- GitLab