ci: исправил release.yml (#11)

This commit is contained in:
Maxim Slipenko 2023-09-26 13:17:20 +03:00 committed by GitHub
parent d13ed00ff7
commit d04b2d3029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.PAT_TOKEN }} GITHUB_TOKEN: ${{ secrets.PAT_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 "$@"