mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 22:22:53 +03:00
ec76ac8d28
The release workflow is failing with the [following error](https://github.com/microsoft/playwright/actions/runs/4814866583): <img width="949" alt="image" src="https://user-images.githubusercontent.com/746130/234735651-204acaea-324b-410e-b030-4c56aabdd653.png"> This was regressed in https://github.com/microsoft/playwright/pull/22232/
33 lines
841 B
YAML
33 lines
841 B
YAML
name: "publish release - NPM"
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
env:
|
|
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
|
|
|
jobs:
|
|
publish-npm-release:
|
|
name: "publish to NPM"
|
|
runs-on: ubuntu-20.04
|
|
if: github.repository == 'microsoft/playwright'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- run: npm i -g npm@8
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npx playwright install-deps
|
|
- run: utils/publish_all_packages.sh --release-candidate
|
|
if: "github.event.release.prerelease"
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
- run: utils/publish_all_packages.sh --release
|
|
if: "!github.event.release.prerelease"
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|