Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
save output
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahor committed Aug 27, 2023
1 parent 74822dd commit 9ff7785
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9ff7785

Please sign in to comment.