Skip to content

Commit bc7e11b

Browse files
address comments
1 parent dd8c93b commit bc7e11b

File tree

4 files changed

+24
-40
lines changed

4 files changed

+24
-40
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: npm ci
4545

4646
- name: Test
47-
run: make test
47+
run: xvfb-run -a make test
4848
env:
4949
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
5050
NODE_ENV: ci

.github/workflows/publish-ovsx.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/publish-vs-marketplace.yml renamed to .github/workflows/publish.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
name: Publish to Visual Studio Marketplace
1+
name: Publish Extension
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
publish_vscode_marketplace:
7+
description: 'Publish to VS Marketplace'
8+
type: boolean
9+
default: true
10+
publish_ovsx:
11+
description: 'Publish to Open VSX'
12+
type: boolean
13+
default: true
514

615
permissions:
716
contents: read
817

918
jobs:
1019
publish:
11-
name: Publish to VS Marketplace
20+
name: Publish Extension
1221
runs-on: ubuntu-latest
1322

1423
steps:
@@ -27,10 +36,21 @@ jobs:
2736
uses: ./.github/actions/set-version
2837

2938
- name: Publish to VS Marketplace
39+
if: ${{ inputs.publish_vscode_marketplace != false }}
3040
run: make publish-marketplace
3141
env:
3242
VERSION: ${{ env.VERSION }}
3343
VSCE_PAT: ${{ secrets.VSCE_PAT }}
3444
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
3545
NODE_ENV: production
3646
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events
47+
48+
- name: Publish to Open VSX
49+
if: ${{ inputs.publish_ovsx != false }}
50+
run: make publish-ovsx
51+
env:
52+
VERSION: ${{ env.VERSION }}
53+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
54+
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
55+
NODE_ENV: production
56+
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test:
1515
@echo "Compiling extension..."
1616
npx vsce package
1717
@echo "Running tests..."
18-
xvfb-run -a npx vscode-test
18+
npx vscode-test
1919

2020
publish-marketplace:
2121
@echo "Publishing VS Code extension to VS Marketplace..."

0 commit comments

Comments
 (0)