refactor: unified VI, shared components, React 19, performance (#2706) #46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Collection Configs | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'configs/collections/**' | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm install @tidbcloud/serverless@0.0.6 | |
| - name: Sync all collections | |
| run: | | |
| for f in configs/collections/*.yml; do | |
| id=$(basename "$f" | cut -d. -f1) | |
| echo "=== Syncing collection $id ===" | |
| node scripts/load-collection.mjs "$id" || echo "⚠ Failed to sync $id, continuing..." | |
| done | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} |