Skip to content

Commit

Permalink
ci: 👷 fix release creating
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed Oct 17, 2023
1 parent b8626f8 commit 49adcdd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ jobs:

- name: Determine next version number
if: inputs.releaseVersion == 'auto'
id: determine_next_version
run: |
nextVersion=`pnpm dlx commit-and-tag-version --path . -t $MATRIX_PACKAGE@v --dry-run | sed -n '/^---$/,/^---$/p' | grep -P -o '(\d+\.)(\d+\.)(\d)' | head -n 1`
echo "$nextVersion"
echo "NEXT_VERSION=$nextVersion" >> $GITHUB_ENV
echo "NEXT_VERSION=$nextVersion" >> $GITHUB_OUTPUT
working-directory: ${{ steps.get-directory.outputs.directory }}
env:
MATRIX_PACKAGE: ${{ matrix.package }}
Expand Down Expand Up @@ -193,8 +194,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.PAT }} # # use PAT to being able to push to protected branch later on
with:
tag: $NEXT_VERSION
name: $NEXT_VERSION
tag: ${{ steps.determine_next_version.outputs.NEXT_VERSION }}
name: ${{ steps.determine_next_version.outputs.NEXT_VERSION }}
prerelease: true
body: |
${{ steps.get_changelog.outputs.changelog }}
$GITHUB_STEP_SUMMARY

0 comments on commit 49adcdd

Please sign in to comment.