v3.9.38 #41
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 | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| package: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build phpunit package | |
| run: pnpm --filter @vscode-phpunit/phpunit build | |
| - name: Package Extension | |
| working-directory: packages/extension | |
| run: pnpm vsce package --no-dependencies | |
| - name: Upload VSIX | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vsix | |
| path: 'packages/extension/*.vsix' | |
| - name: Upload VSIX to GitHub Release | |
| if: github.event_name == 'release' | |
| run: gh release upload "${{ github.event.release.tag_name }}" packages/extension/*.vsix --clobber | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| publish-marketplace: | |
| needs: package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download VSIX | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: vsix | |
| - name: Publish to VS Code Marketplace | |
| run: npx @vscode/vsce publish --packagePath *.vsix | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| publish-openvsx: | |
| needs: package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download VSIX | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: vsix | |
| - name: Publish to Open VSX | |
| run: npx ovsx publish *.vsix | |
| env: | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} |