2021-01-06 01:04:47 +03:00
|
|
|
name: "devrelease:driver"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release-*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish-canary-driver:
|
|
|
|
name: "publish playwright driver to CDN"
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
if: github.repository == 'microsoft/playwright'
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2021-01-06 01:04:47 +03:00
|
|
|
with:
|
2021-04-30 17:49:10 +03:00
|
|
|
node-version: 12
|
2021-01-06 01:04:47 +03:00
|
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- uses: microsoft/playwright-github-action@v1
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
2021-02-10 01:28:04 +03:00
|
|
|
- run: node utils/build/update_canary_version.js --commit-timestamp
|
2021-01-06 01:04:47 +03:00
|
|
|
- run: utils/build/build-playwright-driver.sh
|
|
|
|
- run: utils/build/upload-playwright-driver.sh
|
|
|
|
env:
|
|
|
|
AZ_UPLOAD_FOLDER: driver/next
|
|
|
|
AZ_ACCOUNT_KEY: ${{ secrets.AZ_ACCOUNT_KEY }}
|
|
|
|
AZ_ACCOUNT_NAME: ${{ secrets.AZ_ACCOUNT_NAME }}
|