ci: исправил release.yml

This commit is contained in:
Maxim Slipenko 2023-09-26 13:16:20 +03:00
parent 42bd6668e0
commit 2811f75a85
3 changed files with 14 additions and 4 deletions

View File

@ -33,5 +33,6 @@ jobs:
@semantic-release/git @semantic-release/git
@semantic-release/changelog @semantic-release/changelog
conventional-changelog-conventionalcommits conventional-changelog-conventionalcommits
semantic-release-github-pullrequest
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -50,13 +50,19 @@
} }
], ],
[ [
"@semantic-release/git", "@semantic-release/exec",
{ {
"prepareCmd": "./scripts/version ${nextRelease.version}",
}
],
[
"semantic-release-github-pullrequest", {
"assets": [ "assets": [
"CHANGELOG.md", "CHANGELOG.md",
"pyproject.toml" "pyproject.toml",
"poetry.lock"
], ],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" "baseRef": "main"
} }
] ]
] ]

3
scripts/version Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
poetry version "$@"