Skip to content

Conversation

@sasaplus1
Copy link
Member

  • Add package manager detection (pnpm-lock.yaml)
  • pnpm: use pnpm store path for cache directory
  • pnpm: use pnpm install --frozen-lockfile
  • npm only: restore/save node_modules cache
  • Update test matrix to include both npm and pnpm

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 [email protected]

- Add package manager detection (pnpm-lock.yaml)
- pnpm: use `pnpm store path` for cache directory
- pnpm: use `pnpm install --frozen-lockfile`
- npm only: restore/save node_modules cache
- Update test matrix to include both npm and pnpm

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@sasaplus1 sasaplus1 self-assigned this Dec 26, 2025
@sasaplus1 sasaplus1 enabled auto-merge (squash) December 26, 2025 09:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for pnpm as an alternative package manager alongside npm. The changes enable automatic detection of which package manager to use based on the presence of pnpm-lock.yaml, and configures caching appropriately for each manager.

Key changes:

  • Automatic package manager detection (pnpm vs npm) based on lockfile presence
  • pnpm-specific caching using pnpm store path instead of npm cache directory
  • Conditional node_modules caching (npm only, as pnpm uses content-addressable storage)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
save/action.yml Adds package manager detection step and conditional install/caching logic for pnpm vs npm
restore/action.yml Implements package manager detection, conditional cache restoration, and pnpm install command
.github/workflows/test.yml Extends test matrix to run tests for both npm and pnpm package managers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants