diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 607db73..0fd977c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,5 +33,6 @@ jobs: @semantic-release/git @semantic-release/changelog conventional-changelog-conventionalcommits + semantic-release-github-pullrequest env: GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json index 684308f..591a4a7 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -50,14 +50,20 @@ } ], [ - "@semantic-release/git", + "@semantic-release/exec", { + "prepareCmd": "./scripts/version ${nextRelease.version}", + } + ], + [ + "semantic-release-github-pullrequest", { "assets": [ "CHANGELOG.md", - "pyproject.toml" + "pyproject.toml", + "poetry.lock" ], - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + "baseRef": "main" } ] ] -} \ No newline at end of file +} diff --git a/scripts/version b/scripts/version new file mode 100755 index 0000000..6a6e7f1 --- /dev/null +++ b/scripts/version @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +poetry version "$@"