pnpm cache path
Виводить назву теки, яку pnpm використовує для кешу метаданих, віддзеркалюючи pnpm store path. Шлях виводиться в абсолютному форматі та очищується з точки зору лексичної структури, тому відносний шлях cacheDir перетворюється на шлях, який можуть використовувати інші інструменти.
pnpm cache path
pnpm derives this directory from the platform and the cacheDir setting, so a CI setup that wants to cache it does not have to mirror that resolution by hand:
- name: Get the cache directory
run: echo "PNPM_CACHE_DIR=$(pnpm cache path)" >> $GITHUB_ENV
Besides registry metadata and the pnpm dlx cache, that directory holds the lockfile verification log: the record of which lockfile passed which supply-chain policies. Restoring it lets a job skip re-verifying a lockfile the log already covers under the policies currently configured. That check is the dominant cost of an install in CI once the store is warm. pnpm store prune keeps that log.
important
Зберігайте цю теку лише в тих місцях, до яких мають права на запис надійні завдання. Див. cacheDir налаштування для деталей.