chore: Update VSCode extension version #42
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: | |
| branches: | |
| - master | |
| jobs: | |
| check-changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| extension-changed: ${{ steps.filter.outputs.extension }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Check for extension changes | |
| uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| extension: | |
| - 'vscode-pace/**' | |
| publish: | |
| runs-on: ubuntu-latest | |
| needs: check-changes | |
| if: needs.check-changes.outputs.extension-changed == 'true' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| working-directory: ./vscode-pace | |
| run: npm install | |
| - name: Compile extension | |
| working-directory: ./vscode-pace | |
| run: npm run compile | |
| - name: Publish to VS Code Marketplace | |
| working-directory: ./vscode-pace | |
| run: | | |
| npm install -g @vscode/vsce | |
| vsce publish -p $VSCE_PAT | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} |