{"id":16791282,"url":"https://github.com/nvh95/netlify-plugin-playwright-cache","last_synced_at":"2025-03-22T01:30:32.710Z","repository":{"id":58871929,"uuid":"533832554","full_name":"nvh95/netlify-plugin-playwright-cache","owner":"nvh95","description":"🤖 Persist the Playwright executable between Netlify builds","archived":false,"fork":false,"pushed_at":"2022-09-08T15:52:53.000Z","size":9,"stargazers_count":15,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T06:51:25.672Z","etag":null,"topics":["ci","continuous-integration","netlify","netlify-plugins","playwright"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nvh95.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-07T15:44:34.000Z","updated_at":"2023-06-01T11:11:09.000Z","dependencies_parsed_at":"2022-09-16T15:31:03.200Z","dependency_job_id":null,"html_url":"https://github.com/nvh95/netlify-plugin-playwright-cache","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvh95%2Fnetlify-plugin-playwright-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvh95%2Fnetlify-plugin-playwright-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvh95%2Fnetlify-plugin-playwright-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvh95%2Fnetlify-plugin-playwright-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nvh95","download_url":"https://codeload.github.com/nvh95/netlify-plugin-playwright-cache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893303,"owners_count":20527564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","continuous-integration","netlify","netlify-plugins","playwright"],"created_at":"2024-10-13T08:34:24.805Z","updated_at":"2025-03-22T01:30:32.414Z","avatar_url":"https://github.com/nvh95.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 Netlify Plugin Playwright Cache\n\n[![npm version](https://img.shields.io/npm/v/netlify-plugin-playwright-cache)](https://www.npmjs.com/package/netlify-plugin-playwright-cache)\n![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)\n\nPersist the Playwright executables between Netlify builds.\n\n## Why `netlify-plugin-playwright-cache`\n\nWhen you install `playwright-chromium`, it downloads Chromium executables to a cache folder (not `node_modules`). Netlify does not cache this folder between builds, but caches `node_modules`. This leads to unsuccessful builds with the following error like this:\n\n```\n11:33:48 PM: [: Executable doesn't exist at /opt/buildhome/.cache/ms-playwright/chromium-1019/chrome-linux/chrome\n╔═════════════════════════════════════════════════════════════════════════╗\n11:33:48 PM: ║ Looks like Playwright Test or Playwright was just installed or updated. ║\n11:33:48 PM: ║ Please run the following command to download new browsers:              ║\n11:33:48 PM: ║                                                                         ║\n11:33:48 PM: ║     npx playwright install                                              ║\n11:33:48 PM: ║                                                                         ║\n11:33:48 PM: ║ \u003c3 Playwright Team                                                      ║\n11:33:48 PM: ╚═════════════════════════════════════════════════════════════════════════╝\n```\n\nThis plugins fixes the above issue by caching the Playwright executables (Chromium, ffmpeg...) between builds.\n\n## Installation\n\nYou can install `netlify-plugin-playwright-cache` by one of the following ways:\n\n1. Install directly from Netlify Dashboard:\n\n\u003cimg src=\"https://user-images.githubusercontent.com/8603085/189162327-eb9eba2a-c0f9-49c6-a93b-a28b549423ee.png\" width=\"900\" /\u003e\n\n2. Install as a dependency of your project:\n\n```bash\nnpm install --save-dev netlify-plugin-playwright-cache\n# Or\nyarn add -D netlify-plugin-playwright-cache\n# Or\npnpm add -D netlify-plugin-playwright-cache\n```\n\nThen update `netlify.toml` to include the plugin:\n\n```toml\n[[plugins]]\n  package = \"netlify-plugin-playwright-cache\"\n```\n\n## Usage\n\nRemember to **Clear cache and retry deploy** after adding the plugin.\n\n\u003cimg src=\"https://user-images.githubusercontent.com/8603085/188937674-a8850b77-94ec-4a20-8aa0-8f17e9df754e.png\" width=\"450\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvh95%2Fnetlify-plugin-playwright-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvh95%2Fnetlify-plugin-playwright-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvh95%2Fnetlify-plugin-playwright-cache/lists"}