v0.3.0 #7
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 Extension | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| publish: | |
| name: Package and Publish | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run compile | |
| run: npm run compile | |
| - name: Run unit tests | |
| run: npm run test:unit | |
| - name: Package extension | |
| run: npx @vscode/vsce package | |
| - name: Publish to VS Code Marketplace | |
| run: npx @vscode/vsce publish | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| - name: Upload VSIX to GitHub Release | |
| run: gh release upload ${{ github.event.release.tag_name }} *.vsix | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |