Skip to content

Commit 0a6a02d

Browse files
authored
fix(workflows): skip GitHub release creation when release already exists (#7)
1 parent 5323906 commit 0a6a02d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ jobs:
6060
# Get version from main package
6161
VERSION=$(node -p "require('./packages/connect/package.json').version")
6262
63+
# Skip if release already exists
64+
if gh release view "v$VERSION" > /dev/null 2>&1; then
65+
echo "Release v$VERSION already exists, skipping"
66+
exit 0
67+
fi
68+
6369
# Create release
6470
gh release create "v$VERSION" \
6571
--title "v$VERSION" \

0 commit comments

Comments
 (0)