From d04b2d3029967989387ca8933663596547b0013b Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Tue, 26 Sep 2023 13:17:20 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20release.yml=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 1 + .releaserc.json | 14 ++++++++++---- scripts/version | 3 +++ 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100755 scripts/version 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 "$@"