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 release publishing workflow (#1894)

Andrey Lushnikov0f338eced704
diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml
new file mode 100644
index 0000000000..ef0559992f
--- /dev/null
+++ b/.github/workflows/publish_release.yml
@@ -0,0 +1,25 @@
+name: "release"
+
+on:
+ release:
+ types: [created]
+
+env:
+ CI: true
+
+jobs:
+ publish-canary:
+ name: "publish"
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10
+ registry-url: 'https://registry.npmjs.org'
+ - uses: microsoft/playwright-github-action@v1
+ - run: npm ci
+ - run: utils/publish_all_packages.sh --release
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+