File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777 OPENCODE_BUMP : ${{ inputs.bump }}
7878 OPENCODE_VERSION : ${{ inputs.version }}
7979
80+ # ── GitHub Release ────────────────────────────────────────
81+ - name : Create GitHub Release
82+ continue-on-error : true
83+ run : |
84+ gh release create "v${{ steps.version.outputs.version }}" \
85+ --draft \
86+ --title "v${{ steps.version.outputs.version }}" \
87+ --repo "${{ github.repository }}" \
88+ --notes "Release v${{ steps.version.outputs.version }}"
89+ env :
90+ GH_TOKEN : ${{ github.token }}
91+
8092 # ── Build CLI binary ───────────────────────────────────────
8193 - name : Build CLI
8294 id : build
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ async function prepareReleaseFiles() {
3636}
3737
3838if ( Script . release && ! Script . preview ) {
39- await $ `git fetch origin --tags`
39+ // --force ensures local tags are overwritten by remote (avoids "would clobber existing tag")
40+ await $ `git fetch origin --tags --force`
4041 await $ `git switch --detach`
4142}
4243
You can’t perform that action at this time.
0 commit comments