Skip to content

Update dependencies #12

Update dependencies

Update dependencies #12

name: Update dependencies
on:
schedule:
- cron: "0 14 * * 2"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
concurrency:
group: update-dependencies
cancel-in-progress: true
jobs:
update-dependencies:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: ">=24.0.0"
check-latest: true
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
# Expose workspace binaries (e.g. agent-browser) as bare commands.
# This aligns with the agent-browser skill which expects `agent-browser <cmd>`
# without a `pnpm exec` prefix.
- name: Add node_modules/.bin to PATH
run: echo "$PWD/node_modules/.bin" >> $GITHUB_PATH
- name: Install browser dependencies
run: agent-browser install --with-deps
- name: Warm up browser
run: |
agent-browser open about:blank
agent-browser close
- name: Update dependencies
uses: anthropics/claude-code-action@v1
with:
prompt: |
Read and follow the instructions in .github/prompts/update-dependencies.md
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
show_full_output: true
claude_args: >-
--max-turns 200
--allowedTools Edit,Read,Write,Glob,Grep,Bash(pnpm:*),Bash(git:*),Bash(node:*),Bash(gh:*),Bash(agent-browser:*),Bash(kill:*),Bash(lsof:*),Bash(curl:*),Bash(fuser:*)
env:
# Required by gh CLI to create PRs and issues.
GH_TOKEN: ${{ github.token }}