diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4f29523f9..a039b97c8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }} @@ -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