-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
32 lines (32 loc) · 1.06 KB
/
release.config.js
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
module.exports = {
branches: ['main'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
['@semantic-release/github', {
draftRelease: false,
releasedLabels: false,
successComment: "This release is available as ${nextRelease.version}",
failTitle: "The automated release failed",
failComment: "The automated release failed. Please check the workflow run for details."
}],
[
"@semantic-release/exec", {
"prepareCmd": "python update_version.py ${nextRelease.version}",
"successCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT && echo \"${nextRelease.version}\" > version.txt"
}
],
[
'@semantic-release/git', {
assets: [
'pyproject.toml',
'CHANGELOG.md',
'st_autocomplete/frontend/build/**/*',
'st_autocomplete/**/*.py'
],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}
]
]
};