Skip to content

Commit 93091b7

Browse files
fix condition
1 parent 91e5fba commit 93091b7

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ permissions:
1717
contents: read
1818

1919
jobs:
20-
publish:
21-
name: Publish Extension
20+
publish-vscode-marketplace:
21+
name: Publish to VS Marketplace
2222
runs-on: ubuntu-latest
23+
if: ${{ inputs.publish_vscode_marketplace == null || inputs.publish_vscode_marketplace }}
2324

2425
steps:
2526
- name: Checkout
@@ -37,7 +38,6 @@ jobs:
3738
uses: ./.github/actions/set-version
3839

3940
- name: Publish to VS Marketplace
40-
if: ${{ inputs.publish_vscode_marketplace != false }}
4141
run: make publish-marketplace
4242
env:
4343
VERSION: ${{ env.VERSION }}
@@ -46,8 +46,27 @@ jobs:
4646
NODE_ENV: production
4747
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events
4848

49+
publish-ovsx:
50+
name: Publish to Open VSX
51+
runs-on: ubuntu-latest
52+
if: ${{ inputs.publish_ovsx == null || inputs.publish_ovsx }}
53+
54+
steps:
55+
- name: Checkout
56+
uses: actions/checkout@v5
57+
58+
- name: Setup Node
59+
uses: actions/setup-node@v4
60+
with:
61+
cache: npm
62+
63+
- name: Install dependencies
64+
run: npm ci
65+
66+
- name: Set version from branch name
67+
uses: ./.github/actions/set-version
68+
4969
- name: Publish to Open VSX
50-
if: ${{ inputs.publish_ovsx != false }}
5170
run: make publish-ovsx
5271
env:
5372
VERSION: ${{ env.VERSION }}

0 commit comments

Comments
 (0)