Commit ef387c6 authored Nov 26, 2024 · 1 / 1 · Verified
File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change 18
18
1. **To build your extension, simply run:**
19
19
```plaintext
20
20
vsce package
21
+ ```
22
+
23
+ # Installation
24
+ ```
25
+ code --install-extension flarial.vsix
26
+ ```
You can’t perform that action at this time.
0 commit comments