Skip to content

Commit e819ba0

Browse files
committed
ci: fix version pass between release jobs
1 parent 81bdf2e commit e819ba0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
issues: write # to be able to comment on released issues
1616
pull-requests: write # to be able to comment on released pull requests
1717
outputs:
18-
next-version: ${{ steps.semantic-release.next-version }}
18+
next-version: ${{ steps.semantic-release.outputs.next-version }}
1919

2020
steps:
2121
- name: Checkout repository
@@ -45,7 +45,11 @@ jobs:
4545
id: semantic-release
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
run: npx semantic-release
48+
run: |
49+
npx semantic-release
50+
VERSION=$(cat VERSION)
51+
echo "Next version: $VERSION"
52+
echo "next-version=$VERSION" >> $GITHUB_OUTPUT
4953
5054
docker:
5155
runs-on: ubuntu-latest

.releaserc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ plugins:
1414
- CHANGELOG.md
1515
- semantic-release-major-tag
1616
- - "@semantic-release/exec"
17-
- prepareCmd: "echo \"next-version=${nextRelease.version}\" >> \"$GITHUB_OUTPUT\""
17+
- prepareCmd: "echo ${nextRelease.version} > VERSION"

0 commit comments

Comments
 (0)