We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e1d858 commit 2a76fcfCopy full SHA for 2a76fcf
1 file changed
.github/workflows/release-wasm.yml
@@ -98,6 +98,18 @@ jobs:
98
run: |
99
echo "::warning::WASM npm publication is disabled. The package tarball will still be uploaded to the GitHub Release."
100
101
+ - name: Ensure GitHub Release exists
102
+ env:
103
+ GH_TOKEN: ${{ github.token }}
104
+ INPUT_TAG_NAME: ${{ inputs.tag_name }}
105
+ run: |
106
+ TAG_NAME="${INPUT_TAG_NAME:-$GITHUB_REF_NAME}"
107
+ gh release view "$TAG_NAME" --repo "${{ github.repository }}" \
108
+ || gh release create "$TAG_NAME" \
109
+ --repo "${{ github.repository }}" \
110
+ --title "$TAG_NAME" \
111
+ --generate-notes
112
+
113
- name: Upload npm tarball to GitHub Release
114
env:
115
GH_TOKEN: ${{ github.token }}
0 commit comments