playwright/.github/workflows/publish_canary_npm.yml
2021-01-05 14:04:47 -08:00

28 lines
645 B
YAML

name: "devrelease:npm"
on:
push:
branches:
- master
- release-*
jobs:
publish-canary-npm:
name: "publish to NPM"
runs-on: ubuntu-18.04
if: github.repository == 'microsoft/playwright'
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: npm run build
- run: node utils/build/update_canary_version.js
- run: utils/publish_all_packages.sh --tip-of-tree
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}