Skip to content

Commit c6b8ce8

Browse files
committed
chore: another CD fix
1 parent b880fd4 commit c6b8ce8

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎.github/workflows/cd.yaml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,21 @@ jobs:
229229
with:
230230
node-version: 24.22.1
231231

232+
# On a manual dispatch the tag was never pushed (changeset publish pushes it in the normal
233+
# flow), so push it here rather than having the releases API create it.
234+
- name: Push Release Tag
235+
if: github.event_name == 'workflow_dispatch'
236+
run: |
237+
if git ls-remote --exit-code --tags origin "refs/tags/$CLI_TAG"; then
238+
echo "Tag $CLI_TAG already exists"
239+
else
240+
git tag "$CLI_TAG" "$CLI_REF"
241+
git push origin "refs/tags/$CLI_TAG"
242+
fi
243+
env:
244+
CLI_TAG: ${{ needs.npm-release.outputs.cli-tag }}
245+
CLI_REF: ${{ inputs.ref }}
246+
232247
- name: Create Github Release
233248
uses: softprops/action-gh-release@v2.5.0
234249
with:

0 commit comments

Comments
 (0)