Skip to content

Commit

Permalink
release: Add missing semantic release configuration (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab authored Dec 11, 2024
1 parent 69e4bfa commit bd7eb09
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"branches": ["main"],
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
[
"semantic-release-replace-plugin",
{
"replacements": [
{
"files": ["src/anamnesisai/__init__.py"],
"from": "return \".*\" # semantic-release",
"to": "return \"${nextRelease.version}\" # semantic-release",
"results": [
{
"file": "src/anamnesisai/__init__.py",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
},
{
"files": ["pyproject.toml"],
"from": "version = \".*\" # semantic-release",
"to": "version = \"${nextRelease.version}\" # semantic-release",
"results": [
{
"file": "pyproject.toml",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
}
]
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogTitle": "# Release Notes\n---",
"changelogFile": "docs/changelog.md"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "poetry build",
"publishCmd": "poetry publish"
}
],
[
"@semantic-release/github",
{
"assets": ["dist/*.whl", "dist/*.tar.gz"]
}
],
[
"@semantic-release/git",
{
"assets": [
"pyproject.toml",
"docs/changelog.md",
"src/anamnesisai/__init__.py"
],
"message": "chore(release): ${nextRelease.version}"
}
]
]
}

0 comments on commit bd7eb09

Please sign in to comment.