Skip to content

Commit

Permalink
refactor: print published package
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaiah Yemitan committed Nov 26, 2024
1 parent 044c664 commit 2639c3d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/preview-release-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
PREVIEW_TAG=$(echo "$BRANCH_NAME" | sed -e 's/^preview\///')
git checkout ${{ github.head_ref }}
pnpm changeset version --snapshot ${PREVIEW_TAG}
pnpm changeset publish --tag ${PREVIEW_TAG}
PUBLISH_OUTPUT=$(pnpm changeset publish --tag ${PREVIEW_TAG})
echo "$PUBLISH_OUTPUT"
PACKAGE_NAME=$(echo "$PUBLISH_OUTPUT" | grep -oP '(?<=Successfully published: ).*')
echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }}
GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }}

0 comments on commit 2639c3d

Please sign in to comment.