Don't cache if not installing deps (#32577)

* Force create pnpm cache directory

As commented otherwise the job fails if no deps are installed

* Don't cache if install isn't set

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove cache force creation

* Revert to original fix

* back to simple version, with fixed indent

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
David Baker 2026-02-19 12:59:53 +00:00 committed by GitHub
parent e8d97a9b5a
commit d597fc61d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,6 +49,7 @@ jobs:
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
if: matrix.install != ''
with:
cache: "pnpm"
node-version: "lts/*"