-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.cjs
50 lines (50 loc) · 1.79 KB
/
release.config.cjs
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
module.exports = {
branches: ['main'],
plugins: [
['@semantic-release/commit-analyzer', { preset: 'conventionalcommits' }],
['@semantic-release/release-notes-generator', { preset: 'conventionalcommits' }],
// We don't create a changelog for the CLI, because only few changes in the repo are related to it
['@semantic-release/changelog', { changelogFile: 'packages/safe-ds-lang/CHANGELOG.md' }],
['@semantic-release/changelog', { changelogFile: 'packages/safe-ds-vscode/CHANGELOG.md' }],
['@semantic-release/npm', { pkgRoot: 'packages/safe-ds-cli' }],
['@semantic-release/npm', { pkgRoot: 'packages/safe-ds-lang' }],
[
'@semantic-release/exec',
{
prepareCmd: 'npm version ${nextRelease.version}',
publishCmd: 'npm run package && npm run deploy',
execCwd: 'packages/safe-ds-vscode',
},
],
[
// Update the lock file
'@semantic-release/exec',
{
prepareCmd: 'npm install',
},
],
[
'@semantic-release/github',
{
assets: [
{
path: 'packages/safe-ds-vscode/*.vsix',
},
],
},
],
[
'@semantic-release/git',
{
assets: [
'package-lock.json',
'packages/safe-ds-cli/package.json',
'packages/safe-ds-lang/CHANGELOG.md',
'packages/safe-ds-lang/package.json',
'packages/safe-ds-vscode/CHANGELOG.md',
'packages/safe-ds-vscode/package.json',
],
},
],
],
};