Sfoglia il codice sorgente

chore: update .gitignore to exclude Bun lock files and remove bun.lock file [skip ci]

ding113 2 mesi fa
parent
commit
58f665705a

+ 2 - 2
.github/workflows/claude-ci-autofix.yml

@@ -209,13 +209,13 @@ jobs:
               headBranch: '${{ github.event.workflow_run.head_branch }}'
             };
 
-      - name: Run Claude Code for CI Fix
+      - name: Run Claude Code for Auto-Fix
         uses: anthropics/claude-code-action@v1
         env:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
 
           prompt: |
             You are a CI failure auto-fixer for the repository ${{ github.repository }}.

+ 1 - 1
.github/workflows/claude-issue-auto-response.yml

@@ -24,7 +24,7 @@ jobs:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
           allowed_non_write_users: "*"
 
           prompt: |

+ 1 - 1
.github/workflows/claude-issue-duplicate-check.yml

@@ -24,7 +24,7 @@ jobs:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
           allowed_non_write_users: "*"
 
           prompt: |

+ 1 - 1
.github/workflows/claude-issue-oncall-triage.yml

@@ -24,7 +24,7 @@ jobs:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
 
           prompt: |
             You are an oncall triage assistant for the repository ${{ github.repository }}.

+ 1 - 1
.github/workflows/claude-issue-stale-cleanup.yml

@@ -24,7 +24,7 @@ jobs:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
 
           prompt: |
             You are a stale issue cleanup assistant for the repository ${{ github.repository }}.

+ 1 - 1
.github/workflows/claude-issue-triage.yml

@@ -24,7 +24,7 @@ jobs:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
           allowed_non_write_users: "*"
 
           prompt: |

+ 1 - 1
.github/workflows/claude-pr-description.yml

@@ -29,7 +29,7 @@ jobs:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
           # Allow external contributors (fork PRs) to trigger this workflow
           allowed_non_write_users: "*"
 

+ 1 - 1
.github/workflows/claude-pr-label.yml

@@ -29,7 +29,7 @@ jobs:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
           # Allow external contributors (fork PRs) to trigger this workflow
           allowed_non_write_users: "*"
 

+ 1 - 1
.github/workflows/claude-pr-review.yml

@@ -31,7 +31,7 @@ jobs:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
           allowed_non_write_users: "*"
 
           prompt: |

+ 1 - 1
.github/workflows/claude-review-responder.yml

@@ -34,7 +34,7 @@ jobs:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
 
           prompt: |
             You are a PR author assistant for the repository ${{ github.repository }}.

+ 3 - 3
.github/workflows/claude-unified-docs.yml

@@ -30,7 +30,7 @@ jobs:
         uses: actions/checkout@v5
         with:
           fetch-depth: 0
-          token: ${{ secrets.GH_PAT }}
+          token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
 
       - name: Determine release tag
         id: release_info
@@ -80,13 +80,13 @@ jobs:
           echo "$CHANGED_FILES" >> $GITHUB_OUTPUT
           echo "EOF" >> $GITHUB_OUTPUT
 
-      - name: Run Claude for Unified Documentation Update
+      - name: Run Claude Code for Unified Docs Update
         uses: anthropics/claude-code-action@v1
         env:
           ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
         with:
           anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
-          github_token: ${{ secrets.GH_PAT }}
+          github_token: ${{ secrets.GITHUB_TOKEN || secrets.GH_PAT }}
 
           prompt: |
             你是 Claude Code Hub 项目的发布文档专家。请执行完整的文档更新流程。

+ 1 - 3
.github/workflows/dev.yml

@@ -61,12 +61,10 @@ jobs:
 
       - name: Setup Bun
         uses: oven-sh/setup-bun@v2
-        with:
-          bun-version: '1.3.2'
 
       - name: Install dependencies and format code
         run: |
-          bun install --frozen-lockfile
+          bun install
           bun run format
 
       - name: Commit formatted code

+ 1 - 3
.github/workflows/pr-check.yml

@@ -24,8 +24,6 @@ jobs:
 
       - name: 📦 Setup Bun
         uses: oven-sh/setup-bun@v2
-        with:
-          bun-version: '1.3.2'
 
       - name: 🟢 Setup Node.js
         uses: actions/setup-node@v4
@@ -33,7 +31,7 @@ jobs:
           node-version: '20'
 
       - name: 📦 Install dependencies
-        run: bun install --frozen-lockfile
+        run: bun install
 
       - name: 🔍 Type check
         run: bun run typecheck

+ 1 - 3
.github/workflows/release.yml

@@ -137,13 +137,11 @@ jobs:
       - name: Setup Bun
         if: steps.check.outputs.needs_bump == 'true'
         uses: oven-sh/setup-bun@v2
-        with:
-          bun-version: '1.3.2'
 
       - name: Install dependencies and format code
         if: steps.check.outputs.needs_bump == 'true'
         run: |
-          bun install --frozen-lockfile
+          bun install
           bun run format
 
       - name: Update seed price table

+ 4 - 0
.gitignore

@@ -32,6 +32,10 @@ yarn-error.log*
 .bun-debug.log*
 .workflow/
 
+# Bun lock files
+bun.lock
+bun.lockb
+
 # env files (can opt-in for committing if needed)
 .env*
 !.env.example

File diff suppressed because it is too large
+ 0 - 383
bun.lock


+ 3 - 3
deploy/Dockerfile

@@ -1,11 +1,11 @@
 # syntax=docker/dockerfile:1
 
-FROM --platform=$BUILDPLATFORM oven/bun:1.3.2-slim AS build-base
+FROM --platform=$BUILDPLATFORM oven/bun:slim AS build-base
 WORKDIR /app
 
 FROM build-base AS deps
-COPY package.json bun.lock ./
-RUN bun install --frozen-lockfile
+COPY package.json ./
+RUN bun install
 
 FROM deps AS build
 COPY . .

+ 1 - 2
package.json

@@ -89,6 +89,5 @@
     "drizzle-kit": "^0.31",
     "tailwindcss": "^4",
     "typescript": "^5"
-  },
-  "packageManager": "[email protected]"
+  }
 }

Some files were not shown because too many files changed in this diff