-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrelease.config.cjs
More file actions
29 lines (29 loc) · 1.15 KB
/
Copy pathrelease.config.cjs
File metadata and controls
29 lines (29 loc) · 1.15 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
"use strict";
/**
* semantic-release configuration.
*
* - `main` cuts stable releases (v4.0.0, v4.0.1, …) and triggers the
* production rollout.
* - `staging` cuts `rc` prereleases (v4.0.0-rc.1, …) of the version that
* will eventually land on `main`. No deployment happens from staging.
*
* Versioning starts at v4.0.0: the bun toolchain switch and the legacy-code
* removal are breaking changes (marked with `chore!:` in the history), so
* the first computed release is a major bump over v3.5.0.
*/
module.exports = {
branches: ["main", { channel: "rc", name: "staging", prerelease: "rc" }],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
publishCmd:
// biome-ignore lint/suspicious/noTemplateCurlyInString: semantic-release variable substitution, not a JS template literal
"echo new_release_published=true >> $GITHUB_OUTPUT && echo new_release_version=${nextRelease.version} >> $GITHUB_OUTPUT && echo new_release_git_tag=${nextRelease.gitTag} >> $GITHUB_OUTPUT",
},
],
"@semantic-release/github",
],
};