-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.config.js
29 lines (27 loc) · 978 Bytes
/
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
const package_name = "demo"
const config = {
branches: ['main'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
["@semantic-release/exec", {
"prepareCmd": "echo ${nextRelease.version} > release_version.txt ; python3 setup.py bdist_wheel --dist-dir dist/ ; mv dist/*-${nextRelease.version}-*whl dist/"+package_name+"-latest-py3-none-any.whl",
}],
["@semantic-release/git", {
"assets": ["dist/"+package_name+"-latest-py3-none-any.whl"],
}],
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/"+package_name+"-latest-py3-none-any.whl",
"label": package_name+"-${nextRelease.version}",
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
}
],
]
};
module.exports = config;