-
Notifications
You must be signed in to change notification settings - Fork 2
/
.releaserc.json
52 lines (52 loc) · 1.31 KB
/
.releaserc.json
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
51
52
{
"branches": [
"release/stable",
{
"name": "release/beta",
"channel": "beta",
"prerelease": "beta"
},
{
"name": "release/next",
"channel": "next",
"prerelease": "rc"
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/exec",
{
"verifyConditionsCmd": "if [ 403 != $(curl -X POST -F \":action=file_upload\" -u __token__:$PYPI_TOKEN -s -o /dev/null -w \"%{http_code}\" $PYPI_REPO) ]; then (exit 0); else (echo \"Authentication error. Please check the PYPI_TOKEN environment variable.\" && exit 1); fi",
"prepareCmd": "poetry version ${nextRelease.version}",
"publishCmd": "poetry config repositories.repo $PYPI_REPO && poetry publish --build --repository repo --username __token__ --password $PYPI_TOKEN --no-interaction -vvv"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/*.tar.gz",
"label": "sdist"
},
{
"path": "dist/*.whl",
"label": "wheel"
}
]
}
]
]
}