From 09f8302d385eb80da1b56bc71ba00ce7d2f28407 Mon Sep 17 00:00:00 2001 From: Jeff Martin Date: Wed, 25 Nov 2026 14:20:33 -0800 Subject: [PATCH] Skip the Playwright browser download in CI @vscode/test-web depends on @playwright/browser-chromium, whose postinstall downloads Chromium. CI never runs a browser, and on the ubuntu-26.04 runner image the download fails with "Playwright does not support chromium on ubuntu26.04-x64", which breaks npm ci. --- .github/workflows/build-preview.yml | 5 +++++ .github/workflows/build.yml | 5 +++++ .github/workflows/publish.yml | 5 +++++ .github/workflows/release.yml | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index fec72c6a..32ecacf4 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -10,6 +10,11 @@ permissions: contents: read packages: read +env: + # @vscode/test-web pulls in a Chromium download that CI never uses, and it fails + # on runner images Playwright does not support yet. + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93cc2e03..5ad60ea4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,11 @@ permissions: contents: read packages: read +env: + # @vscode/test-web pulls in a Chromium download that CI never uses, and it fails + # on runner images Playwright does not support yet. + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1864e67f..10687cec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,6 +12,11 @@ on: version: description: "Version to release" required: true +env: + # @vscode/test-web pulls in a Chromium download that CI never uses, and it fails + # on runner images Playwright does not support yet. + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" + jobs: check-version-change: if: ${{ github.repository_owner == 'github' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 186d2ac6..033bc1a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,11 @@ on: type: boolean +env: + # @vscode/test-web pulls in a Chromium download that CI never uses, and it fails + # on runner images Playwright does not support yet. + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" + jobs: create-release-pr: name: Create release PR