-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.js
More file actions
48 lines (47 loc) · 1.33 KB
/
release.config.js
File metadata and controls
48 lines (47 loc) · 1.33 KB
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"],
// repositoryUrl: "git@github.com:arijitcodes/microstream-hub.git", // Keep this only for local `npx semantic-release --dry-run` NOT FOR CI/CD ON GITHUB WORKFLOW - COmment it
plugins: [
"@semantic-release/commit-analyzer",
[
"@semantic-release/release-notes-generator",
{
writerOpts: {
commitPartial: readFileSync(
join(__dirname, "./configs/semantic-release/commit-template.hbs"),
"utf-8"
),
},
},
],
[
"@semantic-release/changelog",
{
changelogFile: "CHANGELOG.md",
},
],
"@semantic-release/npm", // Add this for the Client SDK only
[
"@semantic-release/github",
{
assets: [
{
path: "microstream-client.tar.gz", // Adjust based on your build output
name: "microstream-client_v${nextRelease.version}.tar.gz",
label: "MicroStream Client SDK v${nextRelease.version}",
},
],
},
],
[
"@semantic-release/git",
{
assets: ["CHANGELOG.md", "package*.json", "bun.lockb"],
message:
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
},
],
],
};