From 67fc28ba6ab3f80bd78e14e97075354351d5771b Mon Sep 17 00:00:00 2001 From: Ujjwal Kumar Date: Wed, 12 Mar 2025 23:06:05 +0530 Subject: [PATCH 1/2] fix(url): fixed the repo urls Signed-off-by: Ujjwal Kumar --- .github/workflows/ci.yml | 2 +- .releaserc | 3 ++- pyproject.toml | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 135b71f..cf3a94a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: - name: Install release dependencies if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' run: | - pip install bump-my-version build twine + pip install bumpversion build twine sudo npm install -g semantic-release \ @semantic-release/changelog \ @semantic-release/exec \ diff --git a/.releaserc b/.releaserc index c02e39b..1edcfa8 100644 --- a/.releaserc +++ b/.releaserc @@ -7,12 +7,13 @@ [ "@semantic-release/exec", { - "prepareCmd": "bump-my-version bump --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch" + "prepareCmd": "bumpversion --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch" } ], [ "@semantic-release/git", { + "assets": ["CHANGELOG.md", "pyproject.toml", "ibm_vpc/version.py"], "message": "chore(release): ${nextRelease.version} release notes\n\n${nextRelease.notes}", "gitUserName": "uibm", "gitUserEmail": "ujjwal.kumar1@ibm.com" diff --git a/pyproject.toml b/pyproject.toml index d12976b..85c11b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,11 +33,11 @@ dependencies = [ ] [project.urls] -Repository = "https://github.ibm.com/ibmcloud/vpc-python-sdk" -Documentation = "https://github.ibm.com/ibmcloud/vpc-python-sdk/blob/master/README.md" -Issues = "https://github.ibm.com/ibmcloud/vpc-python-sdk/issues" -Contributing = "https://github.ibm.com/ibmcloud/vpc-python-sdk/blob/master/CONTRIBUTING.md" -License = "https://github.ibm.com/ibmcloud/vpc-python-sdk/blob/master/LICENSE" +Repository = "https://github.com/IBM/vpc-python-sdk" +Documentation = "https://github.com/IBM/vpc-python-sdk/blob/master/README.md" +Issues = "https://github.com/IBM/vpc-python-sdk/issues" +Contributing = "https://github.com/IBM/vpc-python-sdk/blob/master/CONTRIBUTING.md" +License = "https://github.com/IBM/vpc-python-sdk/blob/master/LICENSE" [project.optional-dependencies] dev = [ From 118f80d4a75e581abd5f0ac26ea2d0966618962c Mon Sep 17 00:00:00 2001 From: Ujjwal Kumar Date: Wed, 12 Mar 2025 23:08:44 +0530 Subject: [PATCH 2/2] Update .releaserc Signed-off-by: Ujjwal Kumar --- .releaserc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.releaserc b/.releaserc index 1edcfa8..97460ea 100644 --- a/.releaserc +++ b/.releaserc @@ -7,13 +7,13 @@ [ "@semantic-release/exec", { - "prepareCmd": "bumpversion --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch" + "prepareCmd": "bumpversion --config-file pyproject.toml --allow-dirty --new-version ${nextRelease.version} patch" } ], [ "@semantic-release/git", { - "assets": ["CHANGELOG.md", "pyproject.toml", "ibm_vpc/version.py"], + "assets": ["CHANGELOG.md", "pyproject.toml", "ibm_vpc/version.py", "README.md"], "message": "chore(release): ${nextRelease.version} release notes\n\n${nextRelease.notes}", "gitUserName": "uibm", "gitUserEmail": "ujjwal.kumar1@ibm.com"