Skip to content

fix(pb): backport serverless fix #9264

fix(pb): backport serverless fix

fix(pb): backport serverless fix #9264

Workflow file for this run

on:
pull_request:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: pnpm install
- run: pnpm build -F rivetkit -F '@rivetkit/*' -F '!@rivetkit/shared-data' -F '!@rivetkit/engine-frontend' -F '!@rivetkit/mcp-hub'
- run: npx turbo build:pack-inspector -F rivetkit
# Strip sourcemaps from inspector tarball to stay under pkg-pr-new 20MB limit
- run: |
cd rivetkit-typescript/packages/rivetkit/dist
mkdir -p /tmp/inspector-repack
tar xzf inspector.tar.gz -C /tmp/inspector-repack
find /tmp/inspector-repack -name '*.map' -delete
tar czf inspector.tar.gz -C /tmp/inspector-repack .
rm -rf /tmp/inspector-repack
- run: pnpm dlx pkg-pr-new publish 'shared/typescript/*' 'engine/sdks/typescript/envoy-client/' 'engine/sdks/typescript/envoy-protocol/' 'rivetkit-typescript/packages/*' --packageManager pnpm --template './examples/*'