Skip to content

Commit 7bec6f9

Browse files
committed
Switch CLI publish to manual dispatch
Trigger via workflow_dispatch instead of tag push, and derive the release version from package.json so releases are driven by the committed version rather than the tag that triggered the run.
1 parent 13136f1 commit 7bec6f9

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/publish-cli.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Publish CLI
22

33
on:
4-
push:
5-
tags:
6-
- "cli-v*"
4+
workflow_dispatch:
75

86
permissions:
97
contents: write
@@ -49,7 +47,7 @@ jobs:
4947
env:
5048
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5149
run: |
52-
VERSION="${GITHUB_REF_NAME#cli-v}"
53-
gh release create "$GITHUB_REF_NAME" \
50+
VERSION=$(jq -r .version package.json)
51+
gh release create "cli-v${VERSION}" \
5452
--title "create-red-app v${VERSION}" \
5553
--generate-notes

0 commit comments

Comments
 (0)