Skip to content

Cache across multiple jobs without deleting the dest folder #146

Open
@jlovell25

Description

@jlovell25

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions