Closed jonny-harte closed 6 months ago
Hi, I'm trying to cache a global npm package but I get sf: command not found when the cache is restored. I've tried adding the path from which sf but that didn't help. What else do I need to add to the cache to make this work?
sf: command not found
which sf
- name: Cache id: cache uses: actions/cache@v3 with: path: | ~/.npm /usr/local/bin/sf key: Salesforce-CLI - name: Install Salesforce CLI & Plugins if: steps.cache.outputs.cache-hit != 'true' shell: bash run: | npm install @salesforce/cli --global echo y | sf plugins install sfdx-git-delta
Hi, I'm trying to cache a global npm package but I get
sf: command not found
when the cache is restored. I've tried adding the path fromwhich sf
but that didn't help. What else do I need to add to the cache to make this work?