Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["playground"]
"ignore": []
}
2 changes: 1 addition & 1 deletion .github/actions/deployment-comment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Post deployment status comments on PRs for both preview and produc

inputs:
project-name:
description: 'Name of the project being deployed (e.g., playground, website)'
description: 'Name of the project being deployed (e.g., website)'
required: true
preview-url:
description: 'The preview deployment URL'
Expand Down
48 changes: 3 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
- name: Quality gate (lint + typecheck + test)
run: pnpm nx affected -t lint typecheck test --parallel --configuration=production --base="$NX_BASE" --head="$NX_HEAD"

- name: Build all affected projects (except playground)
run: pnpm nx affected -t build --configuration=production --parallel --exclude=playground --base="$NX_BASE" --head="$NX_HEAD"
- name: Build all affected projects
run: pnpm nx affected -t build --configuration=production --parallel --base="$NX_BASE" --head="$NX_HEAD"


# ─────────────────────────────────────── 2. EDGE-WORKER E2E ──────────────────────────────────────
Expand Down Expand Up @@ -101,49 +101,7 @@ jobs:
run: pnpm nx affected -t test:e2e --parallel --base="$NX_BASE" --head="$NX_HEAD"


# ────────────────────────────────── 3. DEPLOY PLAYGROUND ───────────────────────────
deploy-playground:
needs: [build-and-test, edge-worker-e2e]
if: false # Disabled
# if: >-
# ${{
# (github.event_name == 'pull_request') ||
# (github.ref == 'refs/heads/main' && github.event_name == 'push')
# }}
runs-on: ubuntu-latest
environment: ${{ github.event_name == 'pull_request' && 'preview' || 'production' }}
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_PLAYGROUND_SITE_ID }}
NEXT_PUBLIC_SUPABASE_URL: ${{ github.event_name == 'pull_request' && secrets.DEMO_PREVIEW_SUPABASE_URL || secrets.DEMO_PRODUCTION_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ github.event_name == 'pull_request' && secrets.DEMO_PREVIEW_SUPABASE_ANON_KEY || secrets.DEMO_PRODUCTION_SUPABASE_ANON_KEY }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: ./.github/actions/setup

# Build the workspace libraries that the app imports
- run: pnpm nx run-many -t build --projects client,dsl --configuration=production

- name: Build & deploy to Netlify
id: deploy
run: |
pnpm netlify deploy --build --filter=playground \
--context ${{ github.event_name == 'pull_request' && 'deploy-preview' || 'production' }} \
${{ github.event_name == 'pull_request' && format('--alias=pr-{0}', github.event.pull_request.number) || '--prod' }}

- name: Post deployment comment
if: always()
uses: ./.github/actions/deployment-comment
with:
project-name: Playground
preview-url: https://pr-${{ github.event.pull_request.number }}--pgflow-demo.netlify.app
production-url: https://playground.pgflow.dev

# ────────────────────────────────── 4. DEPLOY WEBSITE ───────────────────────────
# ────────────────────────────────── 3. DEPLOY WEBSITE ───────────────────────────
deploy-website:
needs: [build-and-test, edge-worker-e2e]
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .nxignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Ignore Supabase Edge Functions from Nx dependency analysis
# These are Deno runtime functions with their own import resolution
examples/playground/supabase/functions/
# These are Deno runtime functions with their own import resolution
2 changes: 1 addition & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ When the Version Packages PR is merged:

```bash
# 1. Build all packages
pnpm nx run-many -t build --exclude=playground
pnpm nx run-many -t build

# 2. Publish to npm (all packages except edge-worker)
pnpm publish --recursive --filter=!./pkgs/edge-worker
Expand Down
6 changes: 0 additions & 6 deletions examples/playground/.env.example

This file was deleted.

46 changes: 0 additions & 46 deletions examples/playground/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions examples/playground/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion examples/playground/.nvmrc

This file was deleted.

58 changes: 0 additions & 58 deletions examples/playground/CLAUDE.md

This file was deleted.

179 changes: 0 additions & 179 deletions examples/playground/DEPLOYMENT.md

This file was deleted.

Loading
Loading