Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: don't force NPM 8 everywhere (#27465)

Max Schmittba207697c3c2
diff --git a/.github/workflows/infra.yml b/.github/workflows/infra.yml
index e5247cecde..c63d494e18 100644
--- a/.github/workflows/infra.yml
+++ b/.github/workflows/infra.yml
@@ -22,7 +22,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- - run: npm i -g npm@8
- run: npm ci
- run: npm run build
- run: npx playwright install-deps
diff --git a/.github/workflows/publish_canary.yml b/.github/workflows/publish_canary.yml
index 61119fbbf9..9ecff84367 100644
--- a/.github/workflows/publish_canary.yml
+++ b/.github/workflows/publish_canary.yml
@@ -25,7 +25,6 @@ jobs:
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- - run: npm i -g npm@8
- run: npm ci
- run: npm run build
- run: npx playwright install-deps
@@ -79,7 +78,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- - run: npm i -g npm@8
- name: Deploy Canary
run: bash utils/build/deploy-trace-viewer.sh --canary
if: contains(github.ref, 'main')
diff --git a/.github/workflows/publish_release_docker.yml b/.github/workflows/publish_release_docker.yml
index fe41b5f0bc..98ef1a91f2 100644
--- a/.github/workflows/publish_release_docker.yml
+++ b/.github/workflows/publish_release_docker.yml
@@ -34,7 +34,6 @@ jobs:
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- - run: npm i -g npm@8
- run: npm ci
- run: npm run build
- run: npx playwright install-deps
diff --git a/.github/workflows/publish_release_driver.yml b/.github/workflows/publish_release_driver.yml
index f97ce2e884..c807a925c9 100644
--- a/.github/workflows/publish_release_driver.yml
+++ b/.github/workflows/publish_release_driver.yml
@@ -18,7 +18,6 @@ jobs:
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- - run: npm i -g npm@8
- run: npm ci
- run: npm run build
- run: npx playwright install-deps
diff --git a/.github/workflows/publish_release_npm.yml b/.github/workflows/publish_release_npm.yml
index e423115446..68c4e27630 100644
--- a/.github/workflows/publish_release_npm.yml
+++ b/.github/workflows/publish_release_npm.yml
@@ -21,7 +21,6 @@ jobs:
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- - run: npm i -g npm@8
- run: npm ci
- run: npm run build
- run: npx playwright install-deps
diff --git a/.github/workflows/publish_release_traceviewer.yml b/.github/workflows/publish_release_traceviewer.yml
index 5d2de305fc..ac4986f1e2 100644
--- a/.github/workflows/publish_release_traceviewer.yml
+++ b/.github/workflows/publish_release_traceviewer.yml
@@ -14,7 +14,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- - run: npm i -g npm@8
- name: Deploy Stable
run: bash utils/build/deploy-trace-viewer.sh --stable
env:
diff --git a/.github/workflows/roll_browser_into_playwright.yml b/.github/workflows/roll_browser_into_playwright.yml
index 53f3244b15..8b78c9cf1f 100644
--- a/.github/workflows/roll_browser_into_playwright.yml
+++ b/.github/workflows/roll_browser_into_playwright.yml
@@ -15,7 +15,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- - run: npm i -g npm@8
- run: npm ci
- run: npm run build
- name: Install dependencies
diff --git a/.github/workflows/tests_components.yml b/.github/workflows/tests_components.yml
index bd1d4396b3..cf784a682e 100644
--- a/.github/workflows/tests_components.yml
+++ b/.github/workflows/tests_components.yml
@@ -30,7 +30,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- - run: npm i -g npm@8
- run: npm ci
- run: npm run build
- run: npx playwright install --with-deps
diff --git a/.github/workflows/tests_electron.yml b/.github/workflows/tests_electron.yml
index f11d9b17a5..0feadb7f3b 100644
--- a/.github/workflows/tests_electron.yml
+++ b/.github/workflows/tests_electron.yml
@@ -32,7 +32,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- - run: npm i -g npm@8
- run: npm ci
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
diff --git a/.github/workflows/tests_stress.yml b/.github/workflows/tests_stress.yml
index d64eb07455..8cfecb8d7c 100644
--- a/.github/workflows/tests_stress.yml
+++ b/.github/workflows/tests_stress.yml
@@ -29,7 +29,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- - run: npm i -g npm@8
+ with:
+ node-version: 16
- run: npm ci
- run: npm run build
- run: npx playwright install --with-deps
diff --git a/.github/workflows/tests_video.yml b/.github/workflows/tests_video.yml
index 27f1643ef8..fcde10775a 100644
--- a/.github/workflows/tests_video.yml
+++ b/.github/workflows/tests_video.yml
@@ -26,7 +26,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- - run: npm i -g npm@8
- run: npm ci
env:
DEBUG: pw:install
diff --git a/.github/workflows/tests_webview2.yml b/.github/workflows/tests_webview2.yml
index da0270c248..4fd33af5ba 100644
--- a/.github/workflows/tests_webview2.yml
+++ b/.github/workflows/tests_webview2.yml
@@ -32,7 +32,6 @@ jobs:
- uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- - run: npm i -g npm@8
- run: npm ci
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1