2020-09-02 02:51:32 +03:00
|
|
|
name: "devrelease:npm"
|
2020-04-21 03:45:29 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-04-22 05:20:19 +03:00
|
|
|
- release-*
|
2020-04-21 03:45:29 +03:00
|
|
|
|
|
|
|
jobs:
|
2020-07-14 03:15:10 +03:00
|
|
|
publish-canary-npm:
|
|
|
|
name: "publish to NPM"
|
2020-04-21 03:45:29 +03:00
|
|
|
runs-on: ubuntu-18.04
|
2020-08-01 00:09:36 +03:00
|
|
|
if: github.repository == 'microsoft/playwright'
|
2020-04-21 03:45:29 +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-21 03:45:29 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2020-04-21 03:45:29 +03:00
|
|
|
- run: node utils/update_version.js --next
|
|
|
|
- run: utils/publish_all_packages.sh --tip-of-tree
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
|