Skip to content
Discussion options

You must be logged in to vote

I usually just stick with actions/cache for the pnpm store path. Since jdx/mise-action is really intended to cache the mise binaries/tools themselves, trying to shove app-level dependencies in there is usually a headache.

The cleanest way is to let mise initialize your tools, then grab the store path dynamically so the cache stays isolated to the specific environment mise creates:

- uses: jdx/mise-action@v2
- name: Get pnpm store path
  id: pnpm-cache
  run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
  with:
    path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
    key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
    resto…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@y-nk
Comment options

@y-nk
Comment options

Answer selected by y-nk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants