1 parent 9a57218 commit 1e0621cCopy full SHA for 1e0621c
1 file changed
.github/workflows/npm-publish.yml
@@ -106,7 +106,14 @@ jobs:
106
107
- name: Package and publish extension
108
working-directory: vscode-extension
109
- run: vsce publish --no-dependencies
+ run: |
110
+ vsce publish --no-dependencies 2>&1 | tee /tmp/vsce-out.txt
111
+ EXIT=${PIPESTATUS[0]}
112
+ if [ $EXIT -ne 0 ] && grep -q "already exists" /tmp/vsce-out.txt; then
113
+ echo "✓ Version already on Marketplace — skipping (not an error)"
114
+ exit 0
115
+ fi
116
+ exit $EXIT
117
env:
118
VSCE_PAT: ${{ secrets.VSCE_PAT }}
119
0 commit comments