Skip to content

Commit 811c439

Browse files
G4brymclaude
andcommitted
ci: create GitHub Release after changeset publish
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 33efe9d commit 811c439

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,16 @@ jobs:
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
NPM_CONFIG_PROVENANCE: true
49+
50+
- name: Create GitHub Release
51+
if: steps.changesets.outputs.published == 'true'
52+
run: |
53+
VERSION=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[] | select(.name == "r2-explorer") | .version')
54+
if [ -n "$VERSION" ]; then
55+
gh release create "v${VERSION}" \
56+
--title "v${VERSION}" \
57+
--generate-notes \
58+
--target main
59+
fi
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)