-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathrelease.config.js
More file actions
35 lines (35 loc) · 1.11 KB
/
Copy pathrelease.config.js
File metadata and controls
35 lines (35 loc) · 1.11 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
export default {
branches: ['main'],
plugins: [
// Analyze commits to determine version bump
'@semantic-release/commit-analyzer',
// Generate release notes from commits
'@semantic-release/release-notes-generator',
// Update version in package.json (root)
[
'@semantic-release/npm',
{
npmPublish: false, // Don't publish to npm registry
},
],
// Update version in apps/desktop/package.json
[
'@semantic-release/exec',
{
// biome-ignore lint/suspicious/noTemplateCurlyInString: semantic-release template syntax
prepareCmd: 'npm version ${nextRelease.version} --no-git-tag-version --prefix apps/desktop',
},
],
// Commit the version changes
[
'@semantic-release/git',
{
assets: ['package.json', 'package-lock.json', 'apps/desktop/package.json'],
// biome-ignore lint/suspicious/noTemplateCurlyInString: semantic-release template syntax
message: 'chore(release): ${nextRelease.version} [skip ci]',
},
],
// Create GitHub release with notes
'@semantic-release/github',
],
};