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

Commit

Permalink
simpler this way
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahor committed Aug 27, 2023
1 parent 2675bf2 commit b54b9af
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ jobs:
output=$(pnpm exec changeset publish --tag next)
echo "$output"
versions=$(echo "$output" | grep -zoE 'New tag: +([-\w@a-z/0-9.]+)' | sed -E 's/New tag: +//g')
echo "VERSIONS=$versions"
version=$(echo "$output" | grep -zoE 'New tag: *.*@([^ \n]+)' | head -n 1 | sed -E 's/New tag: *.*@([^ \n]+)/\1/')
echo "VERSION=$version"
echo "versions=$versions" >> $GITHUB_OUTPUT
echo "version=$version" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -114,9 +114,7 @@ jobs:
@${{ github.actor }} your snapshot release has been published!
```
${{ steps.changeset.outputs.versions }}
```
:rocket: `${{ steps.changeset.outputs.version }}`
- name: Send failure comment
uses: peter-evans/create-or-update-comment@v3
Expand Down

0 comments on commit b54b9af

Please sign in to comment.