From 435a2d404b0f2fbddb7b065bc35ec74c242ad098 Mon Sep 17 00:00:00 2001 From: Dmitry Maslennikov Date: Tue, 2 Feb 2021 08:39:06 +0300 Subject: [PATCH] fix publishing --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c8ea97f..d4d42e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -144,10 +144,10 @@ jobs: - name: Publish to VSCode Marketplace shell: bash run: | - [ -z "${{ secrets.VSCE_TOKEN }}" ] && \ + [ -n "${{ secrets.VSCE_TOKEN }}" ] && \ npx vsce publish --packagePath ${{ needs.build.outputs.name }}.vsix -p ${{ secrets.VSCE_TOKEN }} || true - name: Publish to Open VSX Registry shell: bash run: | - [ -z "${{ secrets.OVSX_TOKEN }}" ] && \ + [ -n "${{ secrets.OVSX_TOKEN }}" ] && \ npx ovsx publish ${{ needs.build.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true