Skip to content

Commit 9d71e61

Browse files
committed
Attempted release fix v2
1 parent 7a2e424 commit 9d71e61

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ jobs:
1515

1616
- id: get-version
1717
run: bun repl -e "console.log('version=' + require('./package.json').version)" >> "$GITHUB_OUTPUT"
18+
19+
- run: gh release view ${{ steps.get-version.outputs.VERSION }} --json tagName
20+
env:
21+
GH_TOKEN: ${{ github.token }}
1822

1923
- id: is-released
2024
run: |
21-
if gh release view ${{ steps.get-version.outputs.VERSION }} &> /dev/null ; then
25+
if gh release view ${{ steps.get-version.outputs.VERSION }} --json tagName > /dev/null 2>&1; then
2226
echo "released=true" >> "$GITHUB_OUTPUT"
2327
else
2428
echo "released=false" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)