-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.cjs
48 lines (46 loc) · 2 KB
/
release.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const { readFileSync } = require("fs");
const { join } = require("path");
module.exports = {
branches: ["main"],
plugins: [
"@semantic-release/commit-analyzer",
// "@semantic-release/release-notes-generator",
[
"@semantic-release/release-notes-generator",
{
writerOpts: {
commitPartial: readFileSync(
join(__dirname, "./configs/commit.hbs"),
"utf-8"
),
/* commitPartial:
"*{{#if scope}} **{{scope}}:**\n{{~/if}} {{#if subject}}\n {{~subject}}\n{{~else}}\n {{~header}}\n{{~/if}}\n\n{{~!-- commit link --}}{{~#if hash}} {{#if @root.linkReferences~}}\n ([{{shortHash}}](\n {{~#if @root.repository}}\n {{~#if @root.host}}\n {{[email protected]}}/\n {{~/if}}\n {{~#if @root.owner}}\n {{[email protected]}}/\n {{~/if}}\n {{[email protected]}}\n {{~else}}\n {{[email protected]}}\n {{~/if}}/\n {{[email protected]}}/{{hash}}))\n{{~else}}\n {{~shortHash}}\n{{~/if}}{{~/if}}\n\n{{~!-- commit references --}}\n{{~#if references~}}\n , closes\n {{~#each references}} {{#if @root.linkReferences~}}\n [\n {{~#if this.owner}}\n {{~this.owner}}/\n {{~/if}}\n {{~this.repository}}{{this.prefix}}{{this.issue}}]({{@root.host}}/{{@root.owner}}/_workitems/edit/{{this.issue}})\n {{~else}}\n {{~#if this.owner}}\n {{~this.owner}}/\n {{~/if}}\n {{~this.repository}}{{this.prefix}}{{this.issue}}\n {{~/if}}{{/each}}\n{{~/if}}{{#if body}}\n{{body}}{{/if}}\n",
*/
},
},
],
"@semantic-release/npm",
[
"@semantic-release/github",
{
assets: {
path: "./UltraLogger.tar.gz",
name: "UltraLogger_v${nextRelease.version}.tgz",
label: "UltraLogger Build v${nextRelease.version}",
},
},
],
[
"@semantic-release/changelog",
{
changelogFile: "CHANGELOG.md",
},
],
[
"@semantic-release/git",
{
assets: ["CHANGELOG.md", "package*.json"],
},
],
],
};