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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: docs-deploy

on:
pull_request:
paths:
- 'apps/docs/**'
types: [opened, synchronize]

permissions:
contents: read
pull-requests: write

env:
NODE_LTS_VERSION: 20

jobs:
deploy:
name: Deploy docs to Vercel
runs-on: ubuntu-latest
env:
VERCEL_API_TOKEN: ${{ secrets.VERCEL_API_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.sha }}
fetch-depth: 25

- name: Install Vercel CLI
run: npm i -g vercel@latest

- name: Deploy docs
id: deploy
run: |
URL=$(bash scripts/deploy-docs.sh)
echo "url=$URL" >> $GITHUB_OUTPUT
echo "Deployed to $URL"
env:
DEPLOY_ENVIRONMENT: preview

# - name: Comment on PR with deployment URL
# if: ${{ github.event_name == 'pull_request' }}
# uses: actions/github-script@v7
# with:
# script: |
# const pr = github.context.payload.pull_request?.number
# const url = '${{ steps.deploy.outputs.url }}'
# if (!pr || !url) return
# await github.rest.issues.createComment({
# owner: context.repo.owner,
# repo: context.repo.repo,
# issue_number: pr,
# body: `Docs deployed: ${url}`
# })
4 changes: 2 additions & 2 deletions .github/workflows/retry_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:

return await rerunIfRequiredNotSuccessful()
- name: send retry request to GitHub API
if: ${{ steps.required_job_conclusion.outputs.result != 'success' }}
if: ${{ steps.required_job_conclusion.outputs.result != '"success"' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:

return await rerunIfRequiredNotSuccessful()
- name: send webhook
if: ${{ steps.required_job_conclusion.outputs.result != 'success' }}
if: ${{ steps.required_job_conclusion.outputs.result != '"success"' }}
uses: slackapi/slack-github-action@v1.25.0
with:
# These urls are intentionally missing the protocol,
Expand Down
20 changes: 10 additions & 10 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev-docs": "next dev --turbopack",
"dev-docs": "next dev --turbo",
"build-docs": "next build",
"start": "next start",
"postinstall": "fumadocs-mdx"
},
"dependencies": {
"fumadocs-core": "15.6.0",
"fumadocs-mdx": "11.6.10",
"fumadocs-ui": "15.6.0",
"next": "15.3.5",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"fumadocs-core": "15.7.12",
"fumadocs-mdx": "11.10.0",
"fumadocs-ui": "15.7.12",
"next": "15.5.3",
"react": "19.1.1",
"react-dom": "19.1.1"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@tailwindcss/postcss": "4.1.13",
"@types/mdx": "2.0.13",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.3.5",
"tailwindcss": "^4",
"eslint-config-next": "canary",
"tailwindcss": "4.1.13",
"typescript": "^5"
}
}
13 changes: 0 additions & 13 deletions apps/package.json

This file was deleted.

Loading
Loading