-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.mjs
More file actions
26 lines (25 loc) · 904 Bytes
/
Copy pathrelease.config.mjs
File metadata and controls
26 lines (25 loc) · 904 Bytes
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
const PYPI_REPOSITORY = 'https://upload.pypi.org/legacy/';
export default {
branches: ["main"],
plugins: [
['@semantic-release/commit-analyzer', { preset: 'conventionalcommits' }],
['@semantic-release/release-notes-generator', { preset: 'conventionalcommits' }],
['@semantic-release/changelog', { changelogFile: 'docs/CHANGELOG.md' }],
[
'@semantic-release/exec',
{
prepareCmd: 'uv version ${nextRelease.version}',
publishCmd: `uv build && uv publish --publish-url ${PYPI_REPOSITORY} --trusted-publishing always`,
},
],
[
'@semantic-release/github',
{
assets: [
{ path: 'dist/*.tar.gz', label: 'sdist' },
{ path: 'dist/*.whl', label: 'wheel' },
],
},
],
]
};