diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index db30c6508..a71cdd31b 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -143,6 +143,15 @@ jobs: mv docs/${PACKAGE}/docs/docs.api.json out/${PACKAGE}/${SEMVER}.api.json fi + - name: Upload documentation to database + if: ${{ github.ref_type == 'tag' && matrix.package == steps.extract-tag.outputs.package }} + env: + DATABASE_URL: ${{ secrets.DATABASE_URL }} + uses: ./packages/actions/src/uploadDocumentation + with: + package: ${{ steps.extract-tag.outputs.package }} + version: ${{ steps.extract-tag.outputs.semver }} + - name: Move docs to correct directory if: ${{ github.ref_type == 'branch' }} env: @@ -156,6 +165,14 @@ jobs: mv docs/${PACKAGE}/docs/docs.api.json out/${PACKAGE}/${GITHUB_REF_NAME}.api.json fi + - name: Upload documentation to database + if: ${{ github.ref_type == 'branch' }} + env: + DATABASE_URL: ${{ secrets.DATABASE_URL }} + uses: ./packages/actions/src/uploadDocumentation + with: + package: ${{ matrix.package }} + - name: Commit and push run: | cd out diff --git a/apps/guide/package.json b/apps/guide/package.json index e0ebd64e5..fe4f794f1 100644 --- a/apps/guide/package.json +++ b/apps/guide/package.json @@ -48,7 +48,7 @@ "@react-icons/all-files": "^4.1.0", "@vercel/analytics": "^0.1.11", "@vercel/edge-config": "^0.1.5", - "@vercel/og": "^0.4.2", + "@vercel/og": "^0.5.0", "ariakit": "^2.0.0-next.43", "cmdk": "^0.2.0", "contentlayer": "^0.3.1", @@ -71,16 +71,16 @@ "@next/bundle-analyzer": "^13.2.4", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.4.3", - "@types/node": "18.15.10", - "@types/react": "^18.0.30", + "@types/node": "18.15.11", + "@types/react": "^18.0.31", "@types/react-dom": "^18.0.11", "@unocss/cli": "^0.50.6", "@unocss/reset": "^0.50.6", "@vitejs/plugin-react": "^3.1.0", "@vitest/coverage-c8": "^0.29.8", - "concurrently": "^7.6.0", + "concurrently": "^8.0.1", "cross-env": "^7.0.3", - "eslint": "^8.36.0", + "eslint": "^8.37.0", "eslint-config-neon": "^0.1.41", "eslint-formatter-pretty": "^5.0.0", "happy-dom": "^8.9.0", @@ -90,10 +90,10 @@ "lighthouse": "^10.1.0", "prettier": "^2.8.7", "prettier-plugin-astro": "^0.8.0", - "prettier-plugin-tailwindcss": "^0.2.5", - "typescript": "^5.0.2", + "prettier-plugin-tailwindcss": "^0.2.6", + "typescript": "^5.0.3", "unocss": "^0.50.6", - "vercel": "^28.18.2", + "vercel": "^28.18.3", "vitest": "^0.29.8" }, "engines": { diff --git a/apps/guide/src/app/error.tsx b/apps/guide/src/app/error.tsx index 3d5f7408e..a2289cd8a 100644 --- a/apps/guide/src/app/error.tsx +++ b/apps/guide/src/app/error.tsx @@ -4,7 +4,7 @@ export default function Error({ error }: { error: Error }) { console.error(error); return ( -
+

500

Error.

diff --git a/apps/guide/src/app/global-error.tsx b/apps/guide/src/app/global-error.tsx index d4cf21ddc..042652553 100644 --- a/apps/guide/src/app/global-error.tsx +++ b/apps/guide/src/app/global-error.tsx @@ -11,7 +11,7 @@ export default function GlobalError({ error }: { error: Error }) {
-
+

500

Error.

diff --git a/apps/guide/src/app/not-found.tsx b/apps/guide/src/app/not-found.tsx index 6a3404194..1dde1995a 100644 --- a/apps/guide/src/app/not-found.tsx +++ b/apps/guide/src/app/not-found.tsx @@ -2,7 +2,7 @@ import Link from 'next/link'; export default function NotFound() { return ( -
+

404

Not found.

+
-
+