From a7080c8d8a7d70232e636da7db6969cf4c77e0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=A3=20Bida=20Vacaro?= Date: Mon, 17 Aug 2026 15:48:53 -0300 Subject: [PATCH] fix(release): restore @semantic-release/git, add repositoryUrl The dry-run failed because semantic-release could not find the main branch on the origin remote (a fork without main). Add repositoryUrl pointing to the upstream repo. Branch protection must allow the github-actions bot to push directly. --- .releaserc.json | 9 +++++---- pysus/__init__.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index 383abcac..6d5021b9 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,5 +1,6 @@ { "branches": ["main"], + "repositoryUrl": "https://github.com/AlertaDengue/PySUS.git", "tagFormat": "${version}", "plugins": [ [ @@ -12,8 +13,8 @@ "replacements": [ { "files": ["pysus/__init__.py"], - "from": "return \".*\" # changed by semantic-release", - "to": "return \"${nextRelease.version}\" # changed by semantic-release", + "from": "^return \".*\"", + "to": "return \"${nextRelease.version}\"", "results": [ { "file": "pysus/__init__.py", @@ -26,8 +27,8 @@ }, { "files": ["pyproject.toml"], - "from": "version = \".*\" # changed by semantic-release", - "to": "version = \"${nextRelease.version}\" # changed by semantic-release", + "from": "^version = \".*\"", + "to": "version = \"${nextRelease.version}\"", "results": [ { "file": "pyproject.toml", diff --git a/pysus/__init__.py b/pysus/__init__.py index f0e48f7a..cba88ea7 100644 --- a/pysus/__init__.py +++ b/pysus/__init__.py @@ -17,7 +17,7 @@ def get_version() -> str: try: return importlib_metadata.version(__name__) except importlib_metadata.PackageNotFoundError: # pragma: no cover - return "2.8.0" # changed by semantic-release" + return "2.8.0" # changed by semantic-release version: str = get_version()