playwright-ci-caching

Cache Playwright browser binaries in GitHub Actions and Azure DevOps pipelines.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/tientt010/Dotnet-JiraLite-Microservices --skill playwright-ci-caching-tientt010
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-ci-caching
Source: https://github.com/tientt010/Dotnet-JiraLite-Microservices/tree/main/.github/skills/playwright-ci-caching
Command: npx skills add https://github.com/tientt010/Dotnet-JiraLite-Microservices --skill playwright-ci-caching-tientt010

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cache Playwright browser binaries in CI/CD pipelines to avoid 1-2 minute downloads per run, speeding up feedback cycles.

Core Features & Use Cases

  • Automatic caching of Playwright binaries across Linux, macOS, and Windows runners.
  • Version-aware cache busting by extracting Playwright version from Directory.Packages.props to invalidate outdated binaries.
  • Works with GitHub Actions and Azure DevOps to reduce CI time and flaky network issues.

Quick Start

Configure a CI workflow to cache Playwright binaries keyed by the detected Playwright version and conditionally install on cache misses.

Frequently Asked Questions about playwright-ci-caching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cache Playwright browsers in GitHub Actions to speed up CI builds?

You can cache Playwright browsers in GitHub Actions by configuring your CI workflow to key the cache by the detected Playwright version and conditionally install binaries on cache misses, saving 1-2 minutes of download time per run.

Why does my Playwright CI pipeline download browsers on every single run?

Your Playwright CI pipeline downloads browsers every run because it lacks a version-aware cache key. Extracting the Playwright version from Directory.Packages.props invalidates outdated binaries and prevents repeated downloads.

Can I use Playwright browser caching with Azure DevOps pipelines?

Yes, you can apply Playwright browser caching in Azure DevOps pipelines. The caching mechanism works across both Azure DevOps and GitHub Actions to reduce CI time and avoid flaky network issues during binary downloads.

How do I bust the Playwright browser cache when upgrading to a new version?

To bust the Playwright browser cache on version upgrades, extract the Playwright version from Directory.Packages.props to use as your cache key. This automatically invalidates outdated binaries when the version changes.

Does Playwright browser caching work on macOS and Windows CI runners?

Yes, Playwright browser caching works on macOS and Windows CI runners. It supports automatic caching of Playwright binaries across Linux, macOS, and Windows runners using OS-specific cache paths.