Add ExportMenu component tests and enhance export functionality #63
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: Build and Release Extension | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: windows-latest # Changed from ubuntu-latest to build Windows binaries | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install React Webview Dependencies | |
| run: npm ci --prefix webview/sqlEditor-react | |
| - name: Run Tests | |
| run: npm test | |
| - name: Compile Extension | |
| run: npm run compile | |
| - name: Package Extension | |
| run: | | |
| npm install -g @vscode/vsce | |
| vsce package --allow-star-activation | |
| - name: Publish to VS Code Marketplace | |
| if: success() | |
| run: vsce publish -p ${{ secrets.VSCE_PAT }} | |
| - name: Publish to Open VSX Registry | |
| if: success() | |
| run: | | |
| npm install -g ovsx | |
| $vsix = Get-ChildItem -Filter *.vsix | Select-Object -First 1 -ExpandProperty Name | |
| ovsx publish $vsix -p ${{ secrets.OVSX_PAT }} | |
| shell: pwsh | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: "**/*.vsix" | |
| draft: false | |
| prerelease: false | |
| generate_release_notes: true |