Skip to content

Commit bd6959e

Browse files
committed
Add GitHub Actions workflow for VS Code extension build
Introduces a build workflow using GitHub Actions to automate building the VS Code extension on push to main and on manual dispatch. Also updates package.json to use 'markdownDescription' instead of 'description' for a configuration property.
1 parent 8dcb9e8 commit bd6959e

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build VS Code Extension
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Build extension
27+
run: npm run build
28+
29+
- name: Upload VSIX artifact
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: vs-code-extension
33+
path: "*.vsix"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"newPackage.fileName": {
3131
"type": "string",
3232
"default": "index.ts",
33-
"description": "File name for the main file created in the new package folder."
33+
"markdownDescription": "File name for the main file created in the new package folder."
3434
}
3535
}
3636
},

0 commit comments

Comments
 (0)