-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.config.js
97 lines (96 loc) · 2.96 KB
/
release.config.js
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
const releaseType = process.env.RELEASE_TYPE;
console.log("Release Type:", releaseType);
module.exports = {
branches: [{ name: "main" }],
plugins: [
[
"@semantic-release/commit-analyzer",
{
preset: "conventionalcommits",
releaseRules: [{ message: "*", release: "patch" }],
},
],
"@semantic-release/release-notes-generator",
[
"semantic-release-vsce",
{
packageVsix: true,
publish: false,
},
],
"@semantic-release/changelog",
[
"@semantic-release/git",
{
assets: ["CHANGELOG.md", "package.json", "package-lock.json"],
message: "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}",
},
],
[
"@semantic-release/github",
{
assets: [
{
path: "*.vsix",
},
],
successComment:
":tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\n" +
"The release is available on [GitHub release](<github_release_url>)",
failComment: false,
releasedLabels: ["released"],
addReleases: "bottom",
preRelease: releaseType === "pre-release",
},
],
[
"semantic-release-slack-bot",
{
notifyOnSuccess: false,
notifyOnFail: false,
slackWebhook: process.env.SLACK_WEBHOOK_URL,
onSuccessTemplate: {
text:
":announcement: *Meow-velous News, Team!* :announcement: \n" +
"> Click here: $repo_url/releases to download and install the latest release and enjoy the " +
"latest features.\n\n" +
"Version *$npm_package_version* has just landed on our digital doorstep, " +
"and it's purr-fectly packed with features!\n\n \n\n" +
":yasss_cat: What's New:\n" +
"$release_notes \n\n" +
"Let's make some paw-some progress!\n\n" +
"*Happy Coding, Furr-iends!* " +
":cat-roomba-exceptionally-fast: " +
"*Stay Pawsome!*\n :catjam: _Your Dev Team_ :catjam:",
},
onFailTemplate: {
text:
":red_circle: *Attention Team: Paws for Thought!* :paw_prints:\n" +
"Our latest version *$npm_package_version* has encountered a hiccup," +
" and it's not as purr-fect as we hoped.\n\n" +
":toolbox: *What We're Doing:*\n- Assembling our team of " +
"Cat Coders to hunt down those pesky bugs. Link to our rrrrrrepo: $repo_url \n" +
"- Refining the 'cat-nip' module to ensure it's not too overwhelming.\n\n" +
" :announcement: *What You Can Do:*\n> Please hold off on updating your systems. " +
"We're herding these cats as fast as we can and will let you know the moment " +
"it's safe to pounce on the update button.\n\n*Thank You for Your Patience!* " +
"We're working hard to make things right and appreciate your support.\n\n" +
" :sob_cat: *Stay Tuned for Updates!*\n :catjam: _Your Dev Team_ :catjam:",
},
branchesConfig: [
{
pattern: "main",
notifyOnSuccess: true,
notifyOnFail: true,
},
],
},
],
[
"@semantic-release/exec",
{
analyzeCommitsCmd: "echo patch",
},
],
],
};