Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache across multiple jobs without deleting the dest folder #146

Open
jlovell25 opened this issue Oct 21, 2024 · 0 comments
Open

Cache across multiple jobs without deleting the dest folder #146

jlovell25 opened this issue Oct 21, 2024 · 0 comments

Comments

@jlovell25
Copy link

If I have a workflow that contains multiple pnpm jobs is there an easy way to have pnpm/action-setup in each so that is doesn't delete the dest folder each time it runs (when cached)? I'd like to keep the action in all jobs just to make sure pnpm is installed but the following line of code seems to delete the entire pnpm store directory each time it runs:

await rm(dest, { recursive: true, force: true })

Would an option to skip if already installed be worth having?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant