Skip to content

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

devops: introduce manual @next NPM publishing (#6881)

Andrey Lushnikovb19b2dc3adaa
diff --git a/.github/workflows/publish_canary_npm.yml b/.github/workflows/publish_canary_npm.yml
index 4e3a1fa2c1..9212c81c65 100644
--- a/.github/workflows/publish_canary_npm.yml
+++ b/.github/workflows/publish_canary_npm.yml
@@ -1,6 +1,7 @@
name: "devrelease:npm"
on:
+ workflow_dispatch:
schedule:
- cron: "10 0 * * *"
push:
@@ -22,9 +23,9 @@ jobs:
- run: npm ci
- run: npm run build
- run: node utils/build/update_canary_version.js --today-date
- if: contains(github.ref, 'master')
+ if: contains(github.ref, 'master') && github.event_name != 'workflow_dispatch'
- run: node utils/build/update_canary_version.js --commit-timestamp
- if: contains(github.ref, 'release')
+ if: contains(github.ref, 'release') || github.event_name == 'workflow_dispatch'
- run: utils/publish_all_packages.sh --tip-of-tree
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}