Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,16 @@ jobs:
if: github.event.inputs.version == 'next'
run: |
pnpm -r publish --tag next --no-git-checks

- name: Release summary
if: success() && github.event.inputs.version == 'next'
run: |
VERSION=$(node -p "require('./packages/runtime/package.json').version")
{
echo "## Release summary"
echo ""
echo "- **Tag:** \`next\`"
echo "- **Branch:** \`${{ github.event.inputs.branch }}\`"
echo "- **Version:** \`$VERSION\`"
echo "- **Commit:** \`${{ github.sha }}\`"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Report the checked-out release commit

When a manual release is dispatched from one ref but the branch input points checkout at another ref, this summary records the workflow ref's SHA rather than the commit that was actually built and published. GitHub documents workflow_dispatch GITHUB_SHA as the last commit on the GITHUB_REF branch/tag that received the dispatch, while this workflow publishes ${{ github.event.inputs.branch }} via actions/checkout; use git rev-parse HEAD after checkout so the run summary remains a reliable release audit trail.

Useful? React with 👍 / 👎.

} >> "$GITHUB_STEP_SUMMARY"
Loading