This patch: - starts publishing canary NPM package at 00:10AM UTC - canary version is published from default (`master`) branch and is named with a date. E.g. for a version published on Feb 5, 2021, the version would be `1.8.0-alpha-feb-5-2021` - versions from release branches are still published on every commit and have the regular commit timestamp suffix
40 lines
854 B
YAML
40 lines
854 B
YAML
name: "infra"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
|
|
jobs:
|
|
doc-and-lint:
|
|
name: "docs & lint"
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10
|
|
- uses: microsoft/playwright-github-action@v1
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run lint
|
|
|
|
build-playwright-driver:
|
|
name: "build-playwright-driver"
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10
|
|
- uses: microsoft/playwright-github-action@v1
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: node utils/build/update_canary_version.js --today-date
|
|
- run: utils/build/build-playwright-driver.sh
|