From 55f106694853386d5feaa674aaf0dc5fc39aec1c Mon Sep 17 00:00:00 2001 From: KebanFiru <143508175+KebanFiru@users.noreply.github.com> Date: Tue, 14 Apr 2026 13:34:34 +0300 Subject: [PATCH] Add GitHub Actions workflow for publishing VS Code extension --- .github/workflows/publish.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ce54524 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +name: Publish VS Code Extension + +on: + push: + branches: + - main + +concurrency: + group: marketplace-publish-main + cancel-in-progress: true + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Install dependencies + run: npm install --frozen-lockfile + + - name: Build + run: npm run compile + + - name: Lint + run: npm run lint + + - name: Publish to VS Code Marketplace + env: + VSCE_PAT: ${{ secrets.VSCE_PAT }} + run: npx @vscode/vsce publish -p "$VSCE_PAT" \ No newline at end of file