Skip to content

Commit c8994b4

Browse files
committed
Fix dependency installation in action.yml and update package.json
1 parent 1f53cc4 commit c8994b4

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ runs:
5454
shell: bash
5555
run: |
5656
npm install -g @anthropic-ai/claude-code
57-
npm install --no-save @actions/core @actions/github axios
57+
cd ${{ github.action_path }}
58+
npm install @actions/core @actions/github axios
5859
5960
- name: Set up environment variables
6061
shell: bash
@@ -209,7 +210,8 @@ runs:
209210
- name: Execute runner script
210211
shell: bash
211212
run: |
212-
node ${{ github.action_path }}/run.js
213+
cd ${{ github.action_path }}
214+
node run.js
213215
env:
214216
INPUT_MODE: ${{ inputs.mode }}
215217
INPUT_PR_NUMBER: ${{ inputs.pr-number }}
@@ -220,4 +222,4 @@ runs:
220222
INPUT_TEMPERATURE: ${{ inputs.temperature }}
221223
INPUT_USE_BEDROCK: ${{ inputs.use-bedrock }}
222224
INPUT_OUTPUT_FILE: ${{ inputs.output-file }}
223-
GITHUB_TOKEN: ${{ inputs.github-token }}
225+
GITHUB_TOKEN: ${{ inputs.github-token }}

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claude-code-github-action",
3-
"version": "0.1.1",
3+
"version": "0.1.3",
44
"description": "GitHub action for Claude Code Integration in PR comments and reviews",
55
"main": "run.js",
66
"scripts": {
@@ -29,7 +29,6 @@
2929
"dependencies": {
3030
"@actions/core": "^1.10.1",
3131
"@actions/github": "^6.0.0",
32-
"@anthropic-ai/claude-code": "latest",
3332
"axios": "^1.6.7"
3433
}
35-
}
34+
}

0 commit comments

Comments
 (0)