Skip to content

Commit

Permalink
fix: semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr18 committed Jun 21, 2023
1 parent a7c9f8e commit 8c49d5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pull_request_codecommit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from .pull_request import PullRequest
from .repository import Repository

__version__ = "0.5.1"


@click.command()
@click.option("-r", "--repository-path", default=None)
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ radon = "^5.1.0"
pull-request-codecommit = "pull_request_codecommit:main"
git-pr = "pull_request_codecommit:main"

[tool.semantic_release]
version_variable = [
"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"

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

0 comments on commit 8c49d5f

Please sign in to comment.