From 03261e33868ecfe583ebc3259336e6212ffbcb77 Mon Sep 17 00:00:00 2001 From: Chase Eller Date: Sun, 22 Mar 2026 17:38:13 -0400 Subject: [PATCH] Create ci.yaml --- .github/ci.yaml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/ci.yaml diff --git a/.github/ci.yaml b/.github/ci.yaml new file mode 100644 index 0000000..f52d07a --- /dev/null +++ b/.github/ci.yaml @@ -0,0 +1,51 @@ +name: Build & Release VS Code Extension + +on: + push: + tags: + - 'v*.*.*' # Trigger on version tags like v1.0.0 + +jobs: + release: + runs-on: ubuntu-latest + + steps: + # 1. Checkout the repository + - name: Checkout code + uses: actions/checkout@v4 + + # 2. Set up Node.js + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' # Match your extension's Node.js requirement + cache: 'npm' + + # 3. Install dependencies + - name: Install dependencies + run: npm install + + # 4. Install vsce (VS Code Extension CLI) + - name: Install vsce + run: npm install -g vsce + + # 5. Package the extension + - name: Package Extension + run: vsce package + + # 6. Create GitHub Release + - name: Create Release + id: create_release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.ref_name }} + env: + GITHUB_TOKEN: ${{ secrets.releasekey }} + + # 7. Upload VSIX to the release + - name: Upload VSIX + uses: softprops/action-gh-release@v1 + with: + files: '*.vsix' + env: + GITHUB_TOKEN: ${{ secrets.releasekey }} \ No newline at end of file