Skip to content

Commit ef1630b

Browse files
cursoragenthuylg
andcommitted
Add GitHub Actions VSIX build workflow
Co-authored-by: Huy Ly <huylg@users.noreply.github.com>
1 parent 9eebf52 commit ef1630b

5 files changed

Lines changed: 4054 additions & 13 deletions

File tree

.github/workflows/build-vsix.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build VSIX
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-vsix:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
cache: npm
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Compile extension
28+
run: npm run compile
29+
30+
- name: Package VSIX
31+
run: npm run package:vsix -- --out open-command.vsix
32+
33+
- name: Upload VSIX artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: open-command-vsix
37+
path: open-command.vsix
38+
if-no-files-found: error

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 huylg
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ A VS Code/Cursor extension that lists all available commands and allows you to e
1414
### From VSIX
1515

1616
```bash
17-
bunx @vscode/vsce package
17+
npm ci
18+
npm run package:vsix
1819
cursor --install-extension open-command-*.vsix
1920
```
2021

@@ -40,18 +41,22 @@ cursor --install-extension open-command-*.vsix
4041

4142
```bash
4243
# Install dependencies
43-
bun install
44+
npm ci
4445

4546
# Compile
46-
bun run compile
47+
npm run compile
4748

4849
# Package extension
49-
bunx @vscode/vsce package
50+
npm run package:vsix
5051

5152
# Install in Cursor for testing
5253
cursor --install-extension open-command-*.vsix
5354
```
5455

56+
## CI
57+
58+
GitHub Actions builds the extension on every push, pull request, and manual run, then uploads the generated `.vsix` as a workflow artifact.
59+
5560
## License
5661

5762
MIT

0 commit comments

Comments
 (0)