Files
Dmitry Gozman c829cc1888 devops: fix publish release job (#203)
We do not do `npm run build` anymore.
2021-01-22 11:41:20 -08:00

22 lines
458 B
YAML

name: "publish"
on:
release:
types: [published]
jobs:
publish-npm-release:
name: "publish to NPM"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: 'https://registry.npmjs.org'
- uses: microsoft/playwright-github-action@v1
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}