Skip to content

Commit

Permalink
chore: tweak semantic release config
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr18 committed Mar 4, 2024
1 parent 5b00d1d commit 5e916b9
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,49 @@ pull-request-codecommit = "pull_request_codecommit:main"
git-pr = "pull_request_codecommit:main"

[tool.semantic_release]
version_variable = [
version_variables = [
"pull_request_codecommit/__init__.py:__version__",
"pyproject.toml:version"
]
branch = "main"
upload_to_pypi = true
upload_to_release = true
build_command = "pip install poetry && poetry build"

[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"

[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
]
minor_tags = ["feat"]
patch_tags = [
"build",
"chore",
"ci",
"docs",
"fix",
"perf",
"style",
"refactor",
"test",
]

[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = false

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 5e916b9

Please sign in to comment.