Cache CLI in GitHub Actions? #2600
-
Hi, does anyone know the best way to cache the sf cli in GitHub Actions? At present is takes about 1 minutes to install the cli and plugins each run and I'd like to reduce this down as much as possible. I tried caching the global node modules but this caused Are there additional paths I need to add to make it work or do I need to create a docker image or something else that can be cached in the Actions?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
note also |
Beta Was this translation helpful? Give feedback.
these are the paths I needed to add
echo "NPM_PREFIX=$(npm config get prefix)" >> $GITHUB_ENV