Skip to content

Commit 0048b83

Browse files
fix: correct secret check syntax in workflow
1 parent 7726bd5 commit 0048b83

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,10 @@ jobs:
214214
run: npm install -g vsce
215215

216216
- name: Publish to marketplace
217-
if: ${{ secrets.VSCE_TOKEN != '' }}
218-
run: vsce publish --packagePath *.vsix --pat ${{ secrets.VSCE_TOKEN }}
219-
220-
- name: Skip marketplace publish
221-
if: ${{ secrets.VSCE_TOKEN == '' }}
222-
run: echo "⚠️ VSCE_TOKEN not set, skipping marketplace publish. Extension is available in GitHub release."
217+
run: |
218+
if [ -n "${{ secrets.VSCE_TOKEN }}" ]; then
219+
echo "Publishing to VSCode marketplace..."
220+
vsce publish --packagePath *.vsix --pat ${{ secrets.VSCE_TOKEN }}
221+
else
222+
echo "⚠️ VSCE_TOKEN not set, skipping marketplace publish. Extension is available in GitHub release."
223+
fi

0 commit comments

Comments
 (0)