Interview Prep/CI/CD/GitHub Actions

What is the difference between cache and artifacts in GitHub Actions?

BeginnerConceptGitHub Actions
Answer

Cache is for speeding up repeated work across runs (dependencies, build outputs) and may be missing. Artifacts are the outputs of a specific run that you want to keep or pass to later jobs, and are guaranteed within that run. Use cache for node_modules-type data, artifacts for a built binary, test report or coverage output.

All CI/CD questions

More on GitHub Actions