Selaa lähdekoodia

ci: add github after release

陈文彬 4 vuotta sitten
vanhempi
commit
ee3f9d3191
5 muutettua tiedostoa jossa 62 lisäystä ja 20 poistoa
  1. 34 0
      .github/release-drafter.yml
  2. 5 17
      CHANGELOG.md
  3. 1 2
      build/script/changelog.ts
  4. 17 1
      package.json
  5. 5 0
      yarn.lock

+ 34 - 0
.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

+ 5 - 17
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))

+ 1 - 2
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';
     // }

+ 17 - 1
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",

+ 5 - 0
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"