From 9ff778528aade388adfc56c3fd027ff4742795ee Mon Sep 17 00:00:00 2001 From: Vahor Date: Sun, 27 Aug 2023 19:12:01 +0200 Subject: [PATCH] save output --- .github/workflows/snapshot-release.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) 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()