Bump SDK to v0.2.0 — Bun-first V8 sandbox #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: Publish SDK to npm | |
| on: | |
| push: | |
| tags: | |
| - "sdk-v*" # Trigger on tags like sdk-v0.1.0, sdk-v0.2.0 | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Install dependencies | |
| working-directory: sdk/typescript | |
| run: bun install --frozen-lockfile | |
| - name: Build | |
| working-directory: sdk/typescript | |
| run: bun run build | |
| - name: Publish | |
| working-directory: sdk/typescript | |
| run: npm publish --access public --provenance | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |