Clone any website with one command using AI coding agents
TypeScript aiai-agentsai-toolsautomationboilerplateclaudeclaude-codeclonedeveloper-toolsnextjsreactreverse-engineeringshadcn-uiskillstailwindcsstemplatetypescriptweb-scrapingwebsite-clone
ci: harden generated file sync check
JCodesMore751e327f3a68
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex db3e2586..e5fc30b7 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -15,53 +15,39 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v4+ uses: actions/checkout@v7- name: Setup Node.js- uses: actions/setup-node@v4+ uses: actions/setup-node@v7with:node-version: 24cache: npm- - name: Install dependencies- run: npm ci-- - name: Lint- run: npm run lint-- - name: Type check- run: npm run typecheck-- - name: Build- run: npm run build-- sync:- name: Generated files in sync- runs-on: ubuntu-latest- timeout-minutes: 5-- steps:- - name: Checkout- uses: actions/checkout@v4-- - name: Setup Node.js- uses: actions/setup-node@v4- with:- node-version: 24-- - name: Regenerate agent rules and platform skills+ - name: Verify generated files are in sync+ shell: bashrun: |bash scripts/sync-agent-rules.shnode scripts/sync-skills.mjs- - name: Verify generated files are committed- run: |- if ! git diff --quiet; then+ if [[ -n "$(git status --porcelain=v1 --untracked-files=all)" ]]; thenecho "::error::Generated files are out of sync with their sources (AGENTS.md / SKILL.md)."echo "Run the sync scripts locally and commit the result:"echo " bash scripts/sync-agent-rules.sh"echo " node scripts/sync-skills.mjs"+ git status --shortgit diff --statexit 1fiecho "All generated files are in sync with their sources."++ - name: Install dependencies+ run: npm ci++ - name: Lint+ run: npm run lint++ - name: Type check+ run: npm run typecheck++ - name: Build+ run: npm run build