diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 107c3bbb..9ee85452 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,19 +17,6 @@ jobs: with: node-version: '20' - # Fetch the chat-widget from the landing-page repo (pre-built dist is committed) - - name: Fetch @futureagi/chat-widget - run: | - git clone --depth 1 \ - https://x-access-token:${{ secrets.GH_PAT }}@github.com/future-agi/landing-page.git .landing-tmp - cp -r .landing-tmp/docs-agent/packages/chat-widget ./chat-widget - rm -rf .landing-tmp - - # Replace workspace:* with local file reference so npm can install it - - name: Patch chat-widget dependency - run: | - sed -i 's|"@futureagi/chat-widget": "workspace:\*"|"@futureagi/chat-widget": "file:./chat-widget"|' package.json - - name: Cache npm dependencies uses: actions/cache@v4 with: diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index bf912b57..99fe72cf 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -19,27 +19,8 @@ jobs: with: node-version: '20' - - name: Fetch @futureagi/chat-widget - run: | - git clone --depth 1 \ - https://x-access-token:${{ secrets.GH_PAT }}@github.com/future-agi/landing-page.git .landing-tmp - cp -r .landing-tmp/docs-agent/packages/chat-widget ./chat-widget - rm -rf .landing-tmp - - - name: Patch chat-widget dependency - run: | - sed -i 's|"@futureagi/chat-widget": "workspace:\*"|"@futureagi/chat-widget": "file:./chat-widget"|' package.json - - - name: Cache npm dependencies - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json', 'package.json') }} - restore-keys: ${{ runner.os }}-npm- - - - name: Install dependencies - run: npm install - + # The audit scripts use only Node built-ins: no install, no secrets, + # so this job also runs on fork PRs, which never receive repo secrets - name: Check broken nav & content links run: node scripts/audit-links.mjs diff --git a/package.json b/package.json index ca5a3a6e..e8c55a42 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "@astrojs/mdx": "^4.3.12", "@astrojs/react": "^4.3.1", "@astrojs/sitemap": "^3.6.0", - "@futureagi/chat-widget": "workspace:*", "@giscus/react": "^3.1.0", "@tailwindcss/vite": "^4.1.17", "astro": "^5.16.3",