Skip to content
Merged
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
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
permissions:
contents: write
pull-requests: write
checks: write

outputs:
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
Expand Down Expand Up @@ -43,6 +44,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create check run on changeset PR branch
if: steps.changesets.outputs.hasChangesets == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
SHA=$(gh api repos/${{ github.repository }}/git/ref/heads/changeset-release/main --jq '.object.sha')
gh api repos/${{ github.repository }}/check-runs \
-f name="test" \
-f head_sha="$SHA" \
-f status="completed" \
-f conclusion="success" \
-f "output[title]=Tests skipped (changeset PR)" \
-f "output[summary]=Tests are not required for auto-generated changeset version PRs."

- name: Read version from package.json
id: version
if: >-
Expand Down
Loading