Skip to content

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

devops: update npm to latest for OIDC (#37563)

Yury Semikhatsky805f96ff2d97
diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml
index 297f5c156b..6944d7388b 100644
--- a/.github/workflows/publish_release.yml
+++ b/.github/workflows/publish_release.yml
@@ -15,7 +15,7 @@ env:
jobs:
publish-npm-and-driver:
- name: "publish NPM"
+ name: "publish NPM and driver"
runs-on: ubuntu-24.04
if: github.repository == 'microsoft/playwright'
permissions:
@@ -28,6 +28,9 @@ jobs:
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
+ # Ensure npm 11.5.1 or later is installed (for OIDC npm publishing)
+ - name: Update npm
+ run: npm install -g npm@latest
- run: npm ci
- run: npm run build