pnpm-action-setup-cache
SKILL.md
pnpm/action-setup Cache Migration
1. Inspect Workflow Files
- Open the target
.github/workflows/*.ymlor.yamlfiles. - Locate steps using
pnpm/action-setup. - Record the current
uses: pnpm/action-setup@...version. - Check whether caching is configured with either:
actions/setup-nodeusingcache: pnpm, oractions/cachetargeting pnpm store directories.
2. Upgrade pnpm/action-setup and Enable Built-in Cache
- If
pnpm/action-setupis older thanv4.3.0, update it to a modern tag (v4.3.0or newer). - Ensure the action input enables built-in caching:
- uses: pnpm/action-setup@v4.3.0
with:
cache: true
- Keep existing
version(pnpm CLI version) or other unrelated inputs unless the user explicitly asks to change them.
3. Remove Legacy pnpm Cache Configuration
- Remove pnpm cache wiring from
actions/setup-nodesteps:- delete
cache: pnpm - delete
cache-dependency-pathvalues that were only used for pnpm caching
- delete
- Remove dedicated
actions/cachesteps that cache pnpm store directories (for example paths frompnpm store pathor~/.pnpm-store). - Preserve non-pnpm caches and unrelated setup-node behavior (Node version selection, registry config, auth).
4. Validate Final Workflow Shape
- Confirm each pnpm workflow now has exactly one cache strategy for pnpm:
pnpm/action-setupwithcache: true. - Confirm no leftover pnpm-specific cache keys or paths remain in
actions/setup-nodeoractions/cachesteps. - Keep edits minimal and avoid unrelated workflow churn.
Example Migration
Before:
- uses: pnpm/action-setup@v4.2.0
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
After:
- uses: pnpm/action-setup@v4.3.0
with:
cache: true
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Weekly Installs
1
Repository
stefafafan/skillsFirst Seen
7 days ago
Security Audits
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1