Skip to content

chore(ci): use Node 24 in release workflow #161

chore(ci): use Node 24 in release workflow

chore(ci): use Node 24 in release workflow #161

Workflow file for this run

# https://github.com/stackblitz-labs/pkg.pr.new
name: Preview Release
on:
push:
branches: [main]
workflow_dispatch:
inputs:
ref:
description: 'Ref to release preview'
required: true
default: 'main'
permissions:
contents: read
jobs:
preview:
if: github.repository == 'rstackjs/storybook-rsbuild'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 1
ref: ${{ github.event.inputs.ref }}
- name: Install pnpm
run: |
npm install -g corepack@latest --force
corepack enable
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3.0.3
id: changes
with:
filters: |
changed:
- "packages/**"
- "pnpm-lock.yaml"
- name: Setup Node.js
if: steps.changes.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 22
cache: 'pnpm'
- name: Install Dependencies
if: steps.changes.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
run: pnpm install
- name: Publish Preview
if: steps.changes.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
run: pnpx pkg-pr-new publish --compact --pnpm ./packages/*