Release - Parallel Publishing #1
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: Release | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build extension | |
| run: npm run vscode:prepublish | |
| - name: Package extension | |
| run: npx vsce package | |
| - name: Publish to VSCode Marketplace | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| run: npx vsce publish | |
| - name: Get package name | |
| id: package | |
| run: | | |
| PACKAGE_NAME=$(ls *.vsix | head -1) | |
| echo "package_name=$PACKAGE_NAME" >> $GITHUB_OUTPUT | |
| - name: Upload VSIX to release | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./${{ steps.package.outputs.package_name }} | |
| asset_name: ${{ steps.package.outputs.package_name }} | |
| asset_content_type: application/zip |