mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
031219a757
Since yesterday all our windows bots are dying while trying to install npm@8. Turns out this is due to recent release of npm@8.4. This patch moves our CI to use npm@8.3 https://github.com/npm/cli/issues/4341
30 lines
802 B
YAML
30 lines
802 B
YAML
name: "publish release - NPM"
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
publish-npm-release:
|
|
name: "publish to NPM"
|
|
runs-on: ubuntu-20.04
|
|
if: github.repository == 'microsoft/playwright'
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 12
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- run: npm i -g npm@8.3
|
|
- 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 }}
|