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
|
|
|
|
|
|
|
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
|
2020-08-01 00:09:36 +03:00
|
|
|
if: github.repository == 'microsoft/playwright'
|
2020-04-22 01:10:00 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 10
|
|
|
|
registry-url: 'https://registry.npmjs.org'
|
2020-07-31 03:47:39 +03:00
|
|
|
- uses: microsoft/playwright-github-action@v1
|
2020-04-22 01:10:00 +03:00
|
|
|
- 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
|
2020-08-01 00:09:36 +03:00
|
|
|
if: github.repository == 'microsoft/playwright'
|
2020-07-14 03:15:10 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-07-18 02:51:39 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 10.15
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: ./docs/docker/build.sh --prepare-context
|
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
|