Skip to content

Commit 4e70cf6

Browse files
eviIItlevy9527
authored andcommitted
chore: 使用 gren 生成 release notes (#80)
1 parent d6bd0f7 commit 4e70cf6

File tree

4 files changed

+411
-15
lines changed

4 files changed

+411
-15
lines changed

.grenrc.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
dataSource: 'prs',
3+
prefix: '',
4+
ignoreLabels: ['duplicate', 'help wanted', 'invalid', 'question', 'wontfix'],
5+
ignoreIssuesWith: [
6+
'duplicate',
7+
'help wanted',
8+
'invalid',
9+
'question',
10+
'wontfix'
11+
],
12+
onlyMilestones: false,
13+
changelogFilename: 'CHANGELOG.md',
14+
template: {
15+
issue: '- {{name}} [{{text}}]({{url}})',
16+
group: '\n### {{heading}}\n'
17+
},
18+
// https://github.com/nuxt/nuxt.js/releases
19+
// https://gitmoji.carloscuesta.me
20+
groupBy: {
21+
'✨ New Features:': ['enhancement'],
22+
'🐛 Bug Fixes:': ['bug'],
23+
'📖 Documentation:': ['documentation'],
24+
'💅 Refactors:': ['refactor'],
25+
'♻️ Tests:': ['test'],
26+
'🚀 Performance:': ['performance'],
27+
'⚓ Dependency upgrades:': ['dependencies'],
28+
'🏡 Chore:': ['chore'],
29+
'💄 Style:': ['style'],
30+
'🎩 Hack': ['hack']
31+
}
32+
}

notify.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ then
55
exit 1
66
fi
77

8+
GREN_GITHUB_TOKEN=$GITHUB_TOKEN yarn release
9+
810
url=https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases/latest
911
resp_tmp_file=resp.tmp
1012

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"test": "ava test --verbose",
2121
"test:snapshot": "ava test --verbose --update-snapshots",
2222
"build": "node bin/cli.js -a -o release",
23-
"build:release": "node bin/cli.js -a -o release && node bin/zip.js"
23+
"build:release": "node bin/cli.js -a -o release && node bin/zip.js",
24+
"release": "gren release --override"
2425
},
2526
"dependencies": {
2627
"cac": "^6.5.2",
@@ -42,6 +43,7 @@
4243
"eslint-plugin-promise": "^4.0.1",
4344
"eslint-plugin-standard": "^4.0.0",
4445
"eslint-plugin-vue": "^5.1.0",
46+
"github-release-notes": "^0.17.0",
4547
"husky": "1.3.1",
4648
"semantic-release": "^15.13.24"
4749
},
@@ -80,7 +82,6 @@
8082
]
8183
}
8284
],
83-
"@semantic-release/release-notes-generator",
8485
"@semantic-release/npm",
8586
[
8687
"@semantic-release/github",

0 commit comments

Comments
 (0)