Batch-update dependencies from 17 open renovate PRs: - @modelcontextprotocol/sdk 1.26→1.29, tiptap 3.25→3.26, ioredis 5.11.0→5.11.1 - mysql2 3.22.4→3.22.5, sql.js ^1.12→^1.14, @types/react 19.2.16→19.2.17 - oxlint ^1.67→^1.68, oxfmt ^0.53→^0.54, concurrently ^9→^10, mantine-contextmenu ^7→^9 - postcss ^8.4→^8.5.10 (security), @fec/remark-a11y-emoji ^3→^4 Migrate docs Tailwind CSS v3 → v4: - Replace tailwindcss v3 + autoprefixer with tailwindcss v4 + @tailwindcss/postcss - Convert config from tailwind.config.js to CSS @theme block - Update PostCSS plugin in docusaurus.config.ts Upgrade GitHub Actions: - configure-pages v5→v6, upload-pages-artifact v4→v5, deploy-pages v4→v5 - EndBug/add-and-commit v9→v10, git-auto-commit-action v5→v7 Migrate pnpm v10 → v11 (unblocks #5679): - Move package.json#pnpm config to pnpm-workspace.yaml - Convert onlyBuiltDependencies/ignoredBuiltDependencies to allowBuilds map - Migrate .npmrc settings (nodeLinker, strictPeerDependencies, engineStrict) - Update packageManager to pnpm@11.5.2 Fix proxmox-api undici type incompatibility: - Cast fetch parameter to resolve type mismatch between bundled undici versions Fix integration cache not invalidating after create/update/delete: - Add utils.integration.all.invalidate() to all mutation onSuccess handlers - Previously only Next.js server cache was revalidated, not client tRPC cache
67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
name: "[Docs] Update OpenAPI Spec"
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
env:
|
|
SKIP_ENV_VALIDATION: true
|
|
|
|
jobs:
|
|
update-spec:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
ref: dev
|
|
|
|
- name: Setup
|
|
uses: ./tooling/github/setup
|
|
|
|
- name: Copy env
|
|
run: cp .env.example .env
|
|
|
|
- name: Start dev server
|
|
run: pnpm --filter @homarr/nextjs dev &
|
|
env:
|
|
TURBO_TELEMETRY_DISABLED: 1
|
|
DISABLE_TELEMETRY: 1
|
|
|
|
- name: Wait for server and fetch spec
|
|
run: |
|
|
set -euo pipefail
|
|
for i in $(seq 1 30); do
|
|
if curl -fsS http://localhost:3000/api/openapi -o /tmp/openapi.json 2>/dev/null; then
|
|
echo "Server is up, spec fetched"
|
|
break
|
|
fi
|
|
echo "Waiting for server... ($i/30)"
|
|
sleep 3
|
|
done
|
|
|
|
if [ ! -f /tmp/openapi.json ]; then
|
|
echo "::error::Server failed to start within timeout"
|
|
exit 1
|
|
fi
|
|
|
|
jq -e '.openapi and .paths' /tmp/openapi.json > /dev/null || {
|
|
echo "::error::Fetched file is not a valid OpenAPI spec"
|
|
exit 1
|
|
}
|
|
|
|
cp /tmp/openapi.json apps/docs/static/api/open-api-schema.json
|
|
echo "OpenAPI spec updated ($(jq '.paths | length' /tmp/openapi.json) paths)"
|
|
|
|
- name: Commit updated spec
|
|
uses: EndBug/add-and-commit@v10
|
|
with:
|
|
add: "apps/docs/static/api/"
|
|
default_author: github_actor
|
|
message: "chore(docs): update OpenAPI spec"
|
|
push: true
|