-
I found this article in the turborepo docs. I not only want to cache the task itself but skip the package installation and the whole workflow itself if there is no need to run the action. But wasn't able to successfully integrate this with a GitHub Workflow. So my question is: Is this possible with Github Workflows and if yes, how can I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@Haberkamp Did you find a way to do this? |
Beta Was this translation helpful? Give feedback.
-
The article you've linked describes what you're looking for. You would want to implement logic that skips the rest of the Action for a The rest of the implementation is highly specific to what you're trying to accomplish so I'm not sure there is too much more we could add to the documentation. Is there something specific that you're confused by? |
Beta Was this translation helpful? Give feedback.
-
You can model this with 2 workflows (or 2 jobs in the same workflow, or 2 steps in the same job) by running We don't have a template or guide for this at the moment, but we use this approach internally at Vercel in some cases as well. |
Beta Was this translation helpful? Give feedback.
You can model this with 2 workflows (or 2 jobs in the same workflow, or 2 steps in the same job) by running
--dry
first, parsing the results and checking for cache misses, and then using that result to do a real run with--filter
flag. You also should be able to skip the install step if you first install global turbo instead of using the local one.We don't have a template or guide for this at the moment, but we use this approach internally at Vercel in some cases as well.