From 709922bb11bb9ecac1e9e780d690c82d3964ee76 Mon Sep 17 00:00:00 2001 From: dragon-fish Date: Wed, 7 Oct 2026 22:35:06 +0800 Subject: [PATCH] ci(claude): install pnpm deps and allow build commands for Claude --- .github/workflows/claude.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 6b15fac..453bcd7 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -30,6 +30,16 @@ jobs: with: fetch-depth: 1 + - name: Setup Node.js + uses: actions/setup-node@v5 + with: + node-version: lts/* + + - name: Resolve Dependencies + run: | + npm i -g pnpm + pnpm i + - name: Run Claude Code id: claude uses: anthropics/claude-code-action@v1 @@ -46,5 +56,6 @@ jobs: # Optional: Add claude_args to customize behavior and configuration # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://code.claude.com/docs/en/cli-reference for available options - # claude_args: '--allowed-tools Bash(gh pr *)' + claude_args: | + --allowedTools "Bash(pnpm install:*),Bash(pnpm i:*),Bash(pnpm add:*),Bash(pnpm build:*),Bash(pnpm run:*),Bash(pnpm exec:*),Bash(npx tsc:*)"