2020-04-22 01:10:00 +03:00
|
|
|
name: "release"
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
2020-04-23 08:52:32 +03:00
|
|
|
types: [published]
|
2020-04-22 01:10:00 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
CI: true
|
|
|
|
|
|
|
|
jobs:
|
2020-07-14 03:15:10 +03:00
|
|
|
publish-npm-release:
|
|
|
|
name: "publish to NPM"
|
2020-04-22 01:10:00 +03:00
|
|
|
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
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2020-04-22 01:10:00 +03:00
|
|
|
- run: utils/publish_all_packages.sh --release
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
2020-07-14 03:15:10 +03:00
|
|
|
|
|
|
|
publish-docker-release:
|
|
|
|
name: "publish to DockerHub"
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-07-14 02:18:51 +03:00
|
|
|
- uses: docker/build-push-action@v1
|
|
|
|
with:
|
2020-07-14 03:15:10 +03:00
|
|
|
username: playwright
|
2020-07-14 02:18:51 +03:00
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
registry: playwright.azurecr.io
|
2020-07-14 03:15:10 +03:00
|
|
|
repository: public/playwright
|
2020-07-14 02:18:51 +03:00
|
|
|
path: docs/docker/
|
|
|
|
dockerfile: docs/docker/Dockerfile.bionic
|
|
|
|
tags: bionic,latest
|
|
|
|
tag_with_ref: true
|