downgrade vscode version requirement #36
Workflow file for this run
This file contains hidden or 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: Publish VS Code Extension | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' # Triggers only when you push a version tag like v1.2.3 | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🧰 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: 📦 Install dependencies | |
| run: npm ci | |
| - name: 📋 Validate package.json | |
| run: npx --yes jsonlint-cli package.json | |
| - name: 🛠️ Install vsce and ovsx | |
| run: npm install -g @vscode/vsce@3.5 ovsx@0.9 | |
| - name: 📦 Package VS Code extension | |
| run: vsce package | |
| - name: 🚀 Publish to Marketplace | |
| run: vsce publish --pat ${{ secrets.VSCE_TOKEN }} | |
| env: | |
| VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} | |
| - name: 🚀 Publish to Open VSX | |
| run: | | |
| VSIX_FILE=$(ls -1 *.vsix | head -n 1) | |
| ovsx publish "$VSIX_FILE" --pat ${{ secrets.OPEN_VSX_TOKEN }} | |
| env: | |
| OPEN_VSX_TOKEN: ${{ secrets.OPEN_VSX_TOKEN }} |