mirror of
https://github.com/pnpm/action-setup.git
synced 2026-03-01 07:51:02 +08:00
* chore: add alignment standards for github config - Add .nvmrc file with Node.js 22 - Add PR template for consistent pull requests - Add issue templates for bug reports, feature requests, and tasks - Add standard labels via gh CLI (type, priority, status, area labels) * fix: resolve form-data security vulnerability Add pnpm override to force form-data>=4.0.4 which fixes GHSA-fjxv-7rqg-78g4 (unsafe random function for boundary). * chore: add .claude/settings.local.json to gitignore * feat: Add claude commands * fix: update pnpm version to 10.27.0 (valid release) * fix: update pnpm version from 9 to 10 in all workflows Update all workflow files to use pnpm version 10 to match the packageManager field in package.json (pnpm@10.27.0). This fixes the CI failure caused by version mismatch: - pr-check.yml: version 9 → 10, matrix 9.15.5 → 10.27.0 - build-and-test.yml: version 9 → 10 - security.yml: version 9 → 10 - test.yaml: all version references updated to 10.27.0 * fix: remove packageManager field to allow testing multiple pnpm versions The action tests multiple pnpm versions (9.x and 10.x). Having a packageManager field in package.json causes version mismatch errors when the workflow specifies a different version than packageManager. * fix: use exact pnpm version 10.27.0 in workflows The action validates that the version specified in workflows must match the packageManager field in package.json exactly. Update from version: 10 to version: 10.27.0 to match pnpm@10.27.0. * fix: use local action in ci.yml with explicit version Since packageManager was removed from package.json to allow testing multiple pnpm versions, ci.yml must now specify the version explicitly. Changed from using released @v4.0.0 to using ./ (local action) to test the current code. * fix: rename claude commands to use Windows-compatible filenames Windows doesn't allow colons in filenames. Changed from using colons (agents:action.md) to hyphens (agents-action.md) for cross-platform compatibility.
2.1 KiB
2.1 KiB
Claude Agent Commands
This directory contains Claude agent configurations for the action-setup GitHub Action.
Agent Commands
| Command | Purpose | Best For |
|---|---|---|
agents:explore |
Codebase exploration and architecture understanding | Learning how the action works, finding files |
agents:action |
GitHub Action development and workflow features | Building action features, workflow integration |
agents:inputs |
Action inputs/outputs and validation handling | Working with action.yml, input parsing, outputs |
agents:test |
Test creation and coverage | Writing tests, improving test coverage |
agents:debug |
Root cause analysis and debugging | Investigating issues, analyzing failures |
agents:review |
Code review and quality checks | PR reviews, code quality improvements |
Team Commands
| Command | Purpose | Best For |
|---|---|---|
teams:feature |
Complete feature development workflow | Building new action features end-to-end |
teams:ship |
Pre-release verification and quality checks | Preparing for releases, final QA |
Quick Commands
| Command | Purpose | Best For |
|---|---|---|
quick:check |
Run all quality checks | Quick health check |
quick:fix |
Auto-fix linting and formatting issues | Cleaning up code |
quick:build |
Build the action | Compiling TypeScript and bundling |
quick:test |
Run the test suite | Executing tests |
Project Context
This is a GitHub Action for installing pnpm package manager. Key characteristics:
- Tech Stack: TypeScript, Node.js 20, @actions/core, yaml, zod
- Key Files:
action.yml,src/index.ts,src/inputs/,src/outputs/ - Features: Version management, caching support, pre/post action hooks
- Build Process: TypeScript -> ncc bundling ->
dist/index.js
Usage Tips
- Use agent commands for specific focused tasks
- Use team commands for complex multi-step workflows
- Use quick commands for rapid development iterations
- All commands understand GitHub Action patterns and @actions/core APIs