π fix(.github workflow): #3
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
| # .github/workflows/release-and-publish.yml | |
| name: Release and Publish Extension | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| build-release-publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Install dependencies | |
| run: npm install -g @vscode/vsce && npm install -g pnpm && pnpm install --no-frozen-lockfile | |
| - name: Build extension | |
| run: pnpm run compile | |
| - name: Package extension | |
| run: vsce package | |
| - name: Upload .vsix to Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: '*.vsix' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish to VSCode Marketplace | |
| run: vsce publish --packagePath $(ls *.vsix | head -n 1) | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} |