Skip to content

chore: Vitest Browser Mode #1693

chore: Vitest Browser Mode

chore: Vitest Browser Mode #1693

Workflow file for this run

name: PR Preview
on:
pull_request:
types: [opened, synchronize, labeled]
paths:
- 'packages/nuqs/**'
concurrency:
group: pkg-pr-new-${{ github.event.pull_request.number }}
cancel-in-progress: false
jobs:
deploy-preview:
name: Deploy to pkg.pr.new
if: |
contains(github.event.pull_request.author_association, 'MEMBER') ||
contains(github.event.pull_request.labels.*.name, 'deploy:preview')
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
with:
node-version-file: .node-version
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build package
run: pnpm build --filter nuqs
- name: Set package version
run: |
pnpm pkg set version=0.0.0-preview.${{ github.event.pull_request.head.sha }}
echo "::notice title=Install (PR)::pnpm add https://pkg.pr.new/nuqs@${{ github.event.pull_request.number }}"
echo "::notice title=Install (SHA)::pnpm add https://pkg.pr.new/nuqs@${{ github.event.pull_request.head.sha }}"
echo "::notice title=Version::0.0.0-preview.${{ github.event.pull_request.head.sha }}"
working-directory: packages/nuqs
- name: Publish to pkg.pr.new
run: pnpx pkg-pr-new publish --compact './packages/nuqs' --no-template --packageManager=pnpm --pnpm