Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 42 additions & 0 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy Main

on:
push:
branches:
- main

permissions:
contents: read

concurrency:
group: deploy-main
cancel-in-progress: false

jobs:
deploy:
name: Build and deploy affected apps
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v5
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Build and deploy affected apps
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: |
node tools/netlify/deploy-affected.mjs \
--mode production \
--base "${{ github.event.before }}" \
--head "${{ github.sha }}"
89 changes: 89 additions & 0 deletions .github/workflows/deploy-pr-previews.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Deploy PR Previews

on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review

permissions:
contents: read
issues: write
pull-requests: write

concurrency:
group: netlify-preview-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
deploy-preview:
name: Build and deploy affected previews
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository

steps:
- name: Check out repository
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v5
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Build and deploy affected previews
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
node tools/netlify/deploy-affected.mjs \
--mode preview \
--base "origin/${{ github.base_ref }}" \
--head HEAD \
--pr "${{ github.event.pull_request.number }}"

- name: Comment preview links
if: always()
uses: actions/github-script@v8
with:
script: |
const fs = require("fs")
const marker = "<!-- netlify-preview-links -->"
const path = "netlify-deployments.md"
const summary = fs.existsSync(path)
? fs.readFileSync(path, "utf8")
: "Netlify preview deployment did not produce a summary."
const body = `${marker}\n${summary}`
const { owner, repo } = context.repo
const issue_number = context.payload.pull_request.number
const comments = await github.rest.issues.listComments({
owner,
repo,
issue_number,
per_page: 100,
})
const existing = comments.data.find((comment) =>
comment.user?.type === "Bot" && comment.body?.includes(marker)
)
if (existing) {
await github.rest.issues.updateComment({
owner,
repo,
comment_id: existing.id,
body,
})
} else {
await github.rest.issues.createComment({
owner,
repo,
issue_number,
body,
})
}
54 changes: 0 additions & 54 deletions .github/workflows/github-pages.yml

This file was deleted.

118 changes: 0 additions & 118 deletions .github/workflows/replay-mcp-lab.yml

This file was deleted.

19 changes: 11 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
.DS_Store
.env
.env.*
!.env.example

node_modules/
dist/
out/
pages-dist/
.next/
.output/
test-results/
playwright-report/
tsconfig.tsbuildinfo
.DS_Store
.nx/
.netlify/

coverage/
*.tsbuildinfo
netlify-deployments.md
Loading