feat: SSE-over-HTTP WebSocket transport for Convex behind firewalls #2
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 client to npm | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "packages/client/package.json" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build client | |
| run: bun run build | |
| - name: Publish if the version changed | |
| working-directory: packages/client | |
| run: | | |
| name=$(jq -r .name package.json) | |
| local=$(jq -r .version package.json) | |
| remote=$(npm view "$name" version 2>/dev/null || echo "") | |
| if [ "$local" != "$remote" ]; then | |
| echo "Publishing $name@$local" | |
| npm publish --access public | |
| else | |
| echo "Skipping $name@$local (already published)" | |
| fi |