-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.releaserc.mjs
More file actions
39 lines (37 loc) · 1.1 KB
/
.releaserc.mjs
File metadata and controls
39 lines (37 loc) · 1.1 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
// Copyright 2025 Deutsche Telekom IT GmbH
//
// SPDX-License-Identifier: Apache-2.0
// @ts-check
/** @type {import('semantic-release').GlobalConfig} */
export default {
preset: 'angular',
tagFormat: 'v${version}',
repositoryUrl: 'https://github.com/telekom/controlplane.git',
branches: [
'master',
'main',
'next',
'next-major',
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
['@semantic-release/exec', {
prepareCmd: `
bash ./.github/scripts/update_install.sh "\${nextRelease.gitTag}"
bash ./.github/scripts/update_chart_version.sh common-server/helm "\${nextRelease.gitTag}"
`,
publishCmd: `cat > /tmp/release-notes.md <<'EOF'
\${nextRelease.notes}
EOF`,
}],
['@semantic-release/git', {
assets: [
'CHANGELOG.md',
'install/kustomization.yaml',
'common-server/helm/Chart.yaml',
],
}],
],
};