Skip to content

Commit 939e857

Browse files
address comments
1 parent dd8c93b commit 939e857

File tree

5 files changed

+78
-74
lines changed

5 files changed

+78
-74
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

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

.github/workflows/publish.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Publish Extension
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
inputs:
7+
publish_vscode_marketplace:
8+
description: 'Publish to VS Marketplace'
9+
type: boolean
10+
default: true
11+
publish_ovsx:
12+
description: 'Publish to Open VSX'
13+
type: boolean
14+
default: true
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
publish-vscode-marketplace:
21+
name: Publish to VS Marketplace
22+
runs-on: ubuntu-latest
23+
if: ${{ inputs.publish_vscode_marketplace != false }}
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v5
28+
29+
- name: Setup Node
30+
uses: actions/setup-node@v4
31+
with:
32+
cache: npm
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Set version from branch name
38+
uses: ./.github/actions/set-version
39+
40+
- name: Publish to VS Marketplace
41+
run: make publish-marketplace
42+
env:
43+
VERSION: ${{ env.VERSION }}
44+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
45+
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
46+
NODE_ENV: production
47+
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events
48+
49+
publish-ovsx:
50+
name: Publish to Open VSX
51+
runs-on: ubuntu-latest
52+
if: ${{ inputs.publish_ovsx != false }}
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+
69+
- name: Publish to Open VSX
70+
run: make publish-ovsx
71+
env:
72+
VERSION: ${{ env.VERSION }}
73+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
74+
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
75+
NODE_ENV: production
76+
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)