Skip to content

Commit ef387c6

Browse files
authoredNov 26, 2024··
Merge pull request #1 from notchyves/main
generate vscode plugin with actions
2 parents 6d760d8 + cb25a54 commit ef387c6

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
 

‎.github/workflows/build.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and Upload VSCode Extension as Artifact
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger the action when pushing to the main branch (adjust if you use a different branch)
7+
pull_request:
8+
branches:
9+
- main # Trigger the action when a PR is opened to the main branch
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest # You can change this to 'windows-latest' or 'macos-latest' if needed
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js 20
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '20' # Change Node.js version to 20
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Install VSCE
28+
run: npm install -g @vscode/vsce
29+
30+
- name: Build VSCode Extension
31+
run: vsce package # This will generate the .vsix package of your extension
32+
33+
- name: Upload VSCode Extension as Artifact
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: vscode-extension # Name of the artifact (you can change this)
37+
path: '*.vsix' # Path to the .vsix file (adjust this if your file is in a subdirectory)

‎SETUP.md

+6
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@
1818
1. **To build your extension, simply run:**
1919
```plaintext
2020
vsce package
21+
```
22+
23+
# Installation
24+
```
25+
code --install-extension flarial.vsix
26+
```

0 commit comments

Comments
 (0)
Please sign in to comment.