Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops: publish using NPM provenance feature (#27459)
Max Schmitt293c85935a47
diff --git a/.github/workflows/publish_canary.yml b/.github/workflows/publish_canary.ymlindex 9fa09f1ef4..61119fbbf9 100644--- a/.github/workflows/publish_canary.yml+++ b/.github/workflows/publish_canary.yml@@ -16,11 +16,14 @@ jobs:name: "publish canary NPM & Publish canary Docker"runs-on: ubuntu-20.04if: github.repository == 'microsoft/playwright'+ permissions:+ contents: read+ id-token: writesteps:- uses: actions/checkout@v3- uses: actions/setup-node@v3with:- node-version: 16+ node-version: 18registry-url: 'https://registry.npmjs.org'- run: npm i -g npm@8- run: npm cidiff --git a/.github/workflows/publish_release_npm.yml b/.github/workflows/publish_release_npm.ymlindex 474157edf1..e423115446 100644--- a/.github/workflows/publish_release_npm.yml+++ b/.github/workflows/publish_release_npm.yml@@ -12,11 +12,14 @@ jobs:name: "publish to NPM"runs-on: ubuntu-20.04if: github.repository == 'microsoft/playwright'+ permissions:+ contents: read+ id-token: writesteps:- uses: actions/checkout@v3- uses: actions/setup-node@v3with:- node-version: 16+ node-version: 18registry-url: 'https://registry.npmjs.org'- run: npm i -g npm@8- run: npm cidiff --git a/utils/publish_all_packages.sh b/utils/publish_all_packages.shindex 78344136e3..23e4d3eca1 100755--- a/utils/publish_all_packages.sh+++ b/utils/publish_all_packages.sh@@ -94,7 +94,7 @@ echo "==================== Publishing version ${VERSION} ================"node ./utils/workspace.js --ensure-consistentnode ./utils/workspace.js --list-public-package-paths | while read packagedo- npm publish --access=public ${package} --tag="${NPM_PUBLISH_TAG}"+ npm publish --access=public ${package} --tag="${NPM_PUBLISH_TAG}" --provenancedoneecho "Done."