Artifact storage costs are climbing. What do you change?
BeginnerScenarioSpeed, Caching & Cost
Answer
Situation read → 90-day default retention on large build outputs.
What I'd do →
- Set
retention-days: 3on intermediate artifacts, keep reports for 14. - Lower the repo or org default retention.
- Move release binaries to GitHub Releases or a registry.
- Delete old artifacts via API in bulk if needed.
Why → Most artifacts are only useful for the next job or the next day.
Interview tip → Distinguish artifacts (run outputs) from releases (deliverables).
More on Speed, Caching & Cost
`npm ci` takes 4 minutes on every run. Fix it.BeginnerDocker builds take 12 minutes even when only one line of code changed. Speed them up.IntermediateThe repo hits the 10 GB cache limit daily and hit rates are poor. What do you change?IntermediatemacOS jobs are 60% of your bill. What are your options?IntermediateA job sometimes hangs and burns 6 hours. How do you stop it happening again?BeginnerYour PR matrix is 3 OS times 4 versions (12 jobs). How do you cut cost without losing coverage?Advanced