diff --git a/pyproject.toml b/pyproject.toml index 705a0fc..185ee6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,8 +17,8 @@ dependencies = [ ] [tool.semantic_release] -version_variable = ["early_stopping_pytorch/__init__.py:__version__ = \"{version}\""] -version_toml = ["pyproject.toml:project.version"] +version_variable = ["early_stopping_pytorch/__init__.py:^__version__ = \"(.*)\""] +version_toml = ["pyproject.toml:project.version"] # Add this line branch = "main" upload_to_pypi = false build_command = "pip install build && python -m build"