We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70b4e7d commit f7dba65Copy full SHA for f7dba65
1 file changed
.github/workflows/release.yml
@@ -4,7 +4,7 @@ on:
4
workflow_dispatch:
5
6
permissions:
7
- contents: read
+ contents: write
8
id-token: write
9
10
jobs:
@@ -91,3 +91,20 @@ jobs:
91
92
- name: Publish to JSR
93
run: npx jsr publish
94
+
95
+ - name: Create GitHub Release
96
+ env:
97
+ GH_TOKEN: ${{ github.token }}
98
+ VERSION: ${{ steps.version.outputs.value }}
99
+ run: |
100
+ set -euo pipefail
101
+ TAG="v${VERSION}"
102
+ if gh release view "${TAG}" --repo "${GITHUB_REPOSITORY}" >/dev/null 2>&1; then
103
+ echo "Release ${TAG} already exists."
104
+ exit 1
105
+ fi
106
+ gh release create "${TAG}" \
107
+ --repo "${GITHUB_REPOSITORY}" \
108
+ --target "${GITHUB_SHA}" \
109
+ --title "${TAG}" \
110
+ --generate-notes
0 commit comments