Skip to content

Commit 8de1262

Browse files
authored
chore(ci): set pre-release status when publishing to Open VSX (#5377)
1 parent 5fc35b6 commit 8de1262

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/extension-release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ jobs:
2626
run: pnpm run build && pnpm --filter volar run build:prod
2727

2828
- name: Publish
29-
run: pnpm ovsx publish
29+
run: |
30+
VERSION=$(jq -r .version package.json)
31+
if [[ "$VERSION" == *-* ]]; then
32+
echo "Detected prerelease version: $VERSION"
33+
pnpm ovsx publish --pre-release
34+
else
35+
echo "Detected stable release version: $VERSION"
36+
pnpm ovsx publish
37+
fi
3038
working-directory: extensions/vscode
3139
env:
3240
OVSX_PAT: ${{ secrets.OVSX_PAT }}

0 commit comments

Comments
 (0)