Skip to content

feat: stable v2 native plugins #1681

feat: stable v2 native plugins

feat: stable v2 native plugins #1681

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:
- rolldown-vite
pull_request:
types: [opened, synchronize, labeled]
jobs:
preview:
if: >
github.repository == 'vitejs/rolldown-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@v5
- name: Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- name: Set node version to 24
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
# disable cache, to avoid cache poisoning (https://docs.zizmor.sh/audits/#cache-poisoning)
package-manager-cache: false
- name: Disallow installation scripts
run: yq '.onlyBuiltDependencies = []' -i pnpm-workspace.yaml
- name: Install deps
run: pnpm install
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
- name: Build Vite core
working-directory: ./packages/vite
run: pnpm build
- name: Build plugin-legacy
working-directory: ./packages/plugin-legacy
run: pnpm build
- run: pnpm dlx [email protected] publish --pnpm './packages/vite' './packages/plugin-legacy'