Merged
Conversation
|
Would also close #185 |
Contributor
Author
|
Thanks @oBusk, linked that issue too. |
Contributor
Author
|
If you would like to test this in your workflows, you can use the hash of the latest commit from this branch as a version: - name: Setup pnpm
# https://github.com/pnpm/action-setup/pull/188
uses: pnpm/action-setup@0bc9da32cd356746083d9e2b8848bad8b974c72c
with:
cache: true |
* no semicolons * no star imports * import order
KSXGitHub
approved these changes
Dec 6, 2025
zkochan
reviewed
Dec 7, 2025
|
|
||
| **Optional** (_type:_ `boolean`, _default:_ `false`) Whether to cache the pnpm store directory. | ||
|
|
||
| ### `cache_dependency_path` |
Member
There was a problem hiding this comment.
I feel like this setting name is confusing.
Contributor
Author
There was a problem hiding this comment.
This is what it's called in actions/setup-node. I don't love it either, but couldn't come up with anything better. I'm happy to rename it if anyone has a better suggestion.
zkochan
approved these changes
Dec 7, 2025
Contributor
Author
|
Thanks for reviewing this! Looking forward to seeing this released soon. |
jason-rl
pushed a commit
to runloopai/pnpm-action
that referenced
this pull request
Feb 12, 2026
* add pnpm store caching * style: format * no semicolons * no star imports * import order * style: no star imports --------- Co-authored-by: khai96_ <hvksmr1996@gmail.com>
LinnJS
added a commit
to suncoast-innovation-guild/action-setup
that referenced
this pull request
Feb 15, 2026
* Fix multiline run_install example in README.md (pnpm#167) * Remove --frozen-lockfile from examples (pnpm#171) * feat: support installation from custom NPM registry (pnpm#179) copy .npmrc from GitHub workspace if it exists so that PNPM respects custom registry configurations when self-installing * Update README.md (pnpm#175) fix the string run_install example * Remove unused `@types/node-fetch` dependency (pnpm#186) * Clarify that package_json_file is relative to GITHUB_WORKSPACE (pnpm#184) * Clarify that package_json_file is relative to GITHUB_WORKSPACE Clarify the description for package_json_file parameter to specify that the path must be relative to the repository root. * Apply suggestion from @zkochan --------- Co-authored-by: Zoltan Kochan <z@kochan.io> * feat: store caching (pnpm#188) * add pnpm store caching * style: format * no semicolons * no star imports * import order * style: no star imports --------- Co-authored-by: khai96_ <hvksmr1996@gmail.com> * refactor: remove star imports (pnpm#196) * fix(ci): exclude macos (pnpm#197) * ci: pin github actions (pnpm#199) * fix: regenerate lockfile to match package.json overrides * fix(security): override fast-xml-parser to >=5.3.4 Resolves GHSA-37qj-frw5-hhjh (RangeError DoS via numeric entities) in transitive dependency @actions/cache > @azure/storage-blob > @azure/core-xml > fast-xml-parser. * fix: resolve lint, build, and security audit failures - Fix prefer-const lint error in cache-restore/run.ts - Override undici to >=6.23.0 (GHSA-g9mf-h72j-4rw9) - Rebuild dist to match source changes * fix(ci): exclude dist from CodeQL analysis dist/index.js is generated by ncc bundling — CodeQL flags dependency code as security issues. Ignore the dist directory since it's not source code. --------- Co-authored-by: Matthias <matthias.dailey@gmail.com> Co-authored-by: Adrian Riedel <Eynorey@users.noreply.github.com> Co-authored-by: Roman Usherenko <roman.usherenko@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Chris Martin <ch.martin@gmail.com> Co-authored-by: Zoltan Kochan <z@kochan.io> Co-authored-by: Jeremiasz Major <jrh.mjr@gmail.com> Co-authored-by: khai96_ <hvksmr1996@gmail.com> Co-authored-by: Boosted-Bonobo <boostedbonobo1@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pnpm can install Node runtime as a dependency, but
actions/setup-nodeis still needed to cache the pnpm store (as currently suggested in the readme). Alternative is to add something like this to your workflow:With this PR, the same can be accomplished simply by setting
cache: truein setup pnpm action:The implementation is based on actions/setup-node.
Closes #70, closes #80, closes #82, closes #152, closes #173.
Once stable, this could be enabled by default, although I think it would require a major version bump.