Skip to content

Commit

Permalink
fix: update the version inside of semanticrelease
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPietrusky committed Nov 18, 2024
1 parent 6cc63a9 commit d93e991
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,10 @@ jobs:
id: semanticrelease
with:
additional-packages: |
['@semantic-release/git', '@semantic-release/changelog']
['@semantic-release/git', '@semantic-release/changelog', '@semantic-release/exec']
env:
GITHUB_TOKEN: ${{ secrets.BLIBLA_SEMANTIC_RELEASE }}

- name: Update version numbers in README
if: steps.semanticrelease.outputs.new-release-published == 'true'
run: |
VERSION="${{ steps.semanticrelease.outputs.release-version }}"
# Replace version numbers in Docker image tags
sed -i "s/timpietruskyblibla\/runpod-worker-comfy:[0-9]\+\.[0-9]\+\.[0-9]\+/timpietruskyblibla\/runpod-worker-comfy:$VERSION/g" README.md
- name: Set environment variables
if: steps.semanticrelease.outputs.new-release-published == 'true'
run: |
Expand Down
21 changes: 15 additions & 6 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,24 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i \"s/timpietruskyblibla\\/runpod-worker-comfy:[0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][0-9]*/timpietruskyblibla\\/runpod-worker-comfy:${nextRelease.version}/g\" README.md"
}
],
[
"@semantic-release/git",
{
"assets": ["README.md", "CHANGELOG.md"],
"assets": [
"README.md",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"
}
],
Expand Down

0 comments on commit d93e991

Please sign in to comment.