Initial Commit #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build VS Code Extension | |
on: | |
push: | |
branches: | |
- "*" | |
permissions: | |
contents: write | |
jobs: | |
build: | |
name: "Build VS Code Extension" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install dependencies | |
run: npm install | |
- name: Install vsce tool | |
run: npm install -g @vscode/vsce | |
- name: Checking Linting | |
run: npm run lint | |
- name: Package extension | |
run: vsce package --out "extension.vsix" | |
- name: Upload extension vsix as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "extension.vsix" | |
path: "extension.vsix" |