diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf3a94a..a9f05a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,9 +39,9 @@ jobs: run: tox - name: Install release dependencies - if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' + if: github.ref == 'refs/heads/master' && matrix.python-version == '3.9' run: | - pip install bumpversion build twine + pip install bump-my-version build twine sudo npm install -g semantic-release \ @semantic-release/changelog \ @semantic-release/exec \ @@ -49,13 +49,13 @@ jobs: @semantic-release/github - name: Configure Git User - if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' + if: github.ref == 'refs/heads/master' && matrix.python-version == '3.9' run: | git config --global user.name "uibm" git config --global user.email "ujjwal.kumar1@ibm.com" - name: Semantic Release and Publish - if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' + if: github.ref == 'refs/heads/master' && matrix.python-version == '3.9' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.releaserc b/.releaserc index 97460ea..841b357 100644 --- a/.releaserc +++ b/.releaserc @@ -7,7 +7,7 @@ [ "@semantic-release/exec", { - "prepareCmd": "bumpversion --config-file pyproject.toml --allow-dirty --new-version ${nextRelease.version} patch" + "prepareCmd": "bump-my-version bump --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch" } ], [ diff --git a/pyproject.toml b/pyproject.toml index 85c11b0..95bbecb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ classifiers = [ ] keywords=["ibm", "cloud", "ibm cloud services", "vpc" ] dependencies = [ - "ibm_cloud_sdk_core>=3.22.0,<3.22.1;python_version<'3.9'", + "ibm_cloud_sdk_core>=3.22.0,<3.23.0;python_version<'3.9'", "ibm_cloud_sdk_core>=3.23.0;python_version>='3.9'", "python_dateutil>=2.5.3,<3.0.0", ]