diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index e241285..720f76e 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -92,18 +92,15 @@ jobs: run: | pnpm exec changeset version --snapshot pnpm run publish:prepare - pnpm exec changeset publish --tag next + output=$(pnpm exec changeset publish --tag next) + echo $output + + changesetComment=$(echo "$output" | grep -zoE 'Publishing ("[^"]+") at (".*")') + + echo "changesetComment=$changesetComment" >> $GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Format changeset comment - id: format-comment - run: | - changesetComment=$(echo "${{ steps.changesets.outputs.changeset-comment }}" | jq '.[] | "\(.name)@\(.version)"') - echo $changesetComment - echo "changesetComment=$changesetComment" >> $GITHUB_OUTPUT - shell: bash - - name: Send success comment uses: peter-evans/create-or-update-comment@v3 if: success()