Skip to content

fix: cjs build for perEnvironmentState et al (#18656) #486

fix: cjs build for perEnvironmentState et al (#18656)

fix: cjs build for perEnvironmentState et al (#18656) #486

name: Preview release
env:
# install playwright binary manually (because pnpm only runs install script once)
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
permissions:
pull-requests: write
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, labeled]
jobs:
preview:
if: >
github.repository == 'vitejs/vite' &&
(github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'trigger: preview')))
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
- name: Install dependencies
run: pnpm install
- name: Build
working-directory: ./packages/vite
run: pnpm build
- run: pnpm dlx pkg-pr-new@0.0 publish --compact --pnpm ./packages/vite