🐛 Fix PartyKit deploy workflow gate (#2500)

- Limit the PartyKit deploy workflow to pushes that change
`packages/partykit`.
- Remove the broken `turbo-ignore` gate and deploy through the Nx
target.
This commit is contained in:
Baptiste Arnaud 2026-05-21 17:11:51 +02:00 committed by GitHub
parent 36a6186101
commit c549cec651
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,8 @@ on:
push:
branches:
- main
paths:
- "packages/partykit/**"
permissions:
contents: read
@ -26,29 +28,8 @@ jobs:
- uses: oven-sh/setup-bun@v2
with:
bun-version-file: "package.json"
# https://github.com/vercel/turborepo/issues/6348
- name: Run Turbo ignore
id: check_changes
run: |
echo "Running script..."
set +e
bunx turbo-ignore @typebot.io/partykit
exit_code=$?
set -e
echo "Exit code: $exit_code"
if [ $exit_code -eq 0 ]; then
echo "hasClientApiHostChanged=0" >> $GITHUB_OUTPUT
else
echo "hasClientApiHostChanged=1" >> $GITHUB_OUTPUT
fi
- run: bun install
if: steps.check_changes.outputs.hasClientApiHostChanged == '1'
- run: bunx partykit deploy --domain ${PARTYKIT_DOMAIN}
if: steps.check_changes.outputs.hasClientApiHostChanged == '1'
working-directory: ./packages/partykit
- run: bunx nx deploy @typebot.io/partykit -- --domain ${PARTYKIT_DOMAIN}
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}