Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate vscode plugin with actions #1

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Upload VSCode Extension as Artifact

on:
push:
branches:
- main # Trigger the action when pushing to the main branch (adjust if you use a different branch)
pull_request:
branches:
- main # Trigger the action when a PR is opened to the main branch

jobs:
build:
runs-on: ubuntu-latest # You can change this to 'windows-latest' or 'macos-latest' if needed

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js 20
uses: actions/setup-node@v3
with:
node-version: '20' # Change Node.js version to 20

- name: Install dependencies
run: npm install

- name: Install VSCE
run: npm install -g @vscode/vsce

- name: Build VSCode Extension
run: vsce package # This will generate the .vsix package of your extension

- name: Upload VSCode Extension as Artifact
uses: actions/upload-artifact@v3
with:
name: vscode-extension # Name of the artifact (you can change this)
path: '*.vsix' # Path to the .vsix file (adjust this if your file is in a subdirectory)
6 changes: 6 additions & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@
1. **To build your extension, simply run:**
```plaintext
vsce package
```

# Installation
```
code --install-extension flarial.vsix
```