pnpm / pnpm/setup

cache pnpm and runtime when `cache` is enabled

Open
#44 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
140
Forks
19
Avg merge
13h 19m
Merged PRs (30d)
3

Description

the following installs node & pnpm every time it's ran, as they do not get cached (they get downloaded & installed before cache is recovered)

uses: pnpm/setup@v2.1.0
  with:
  runtime: node@26
  cache: true
Run pnpm/setup@v2
# no cache here
Installing pnpm...
Installation Completed!
Installing runtime node@26...
Restoring cache...
# there is cache now

ref: https://github.com/SuperchupuDev/tinyglobby/actions/runs/33325776540/job/99295515418

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the GitHub Action setup flow that installs pnpm and the Node.js runtime, then locate where cache restoration occurs relative to those steps. Reproduce the referenced workflow to confirm the current order; done means the cache is restored before pnpm and the runtime are installed, avoiding repeated downloads.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, node.js, typescript
Domain
ci-cd, devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.