File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ # https://github.com/stackblitz-labs/pkg.pr.new
2+ name : Preview Release
3+
4+ on :
5+ push :
6+ branches : [main]
7+ workflow_dispatch :
8+ inputs :
9+ ref :
10+ description : ' Ref to release preview'
11+ required : true
12+ default : ' main'
13+
14+ permissions :
15+ contents : read
16+
17+ jobs :
18+ preview :
19+ if : github.repository == 'rspack-contrib/storybook-rsbuild'
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
25+ with :
26+ fetch-depth : 1
27+ ref : ${{ github.event.inputs.ref }}
28+
29+ - name : Install pnpm
30+ run : |
31+ npm install -g corepack@latest --force
32+ corepack enable
33+
34+ - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
35+ id : changes
36+ with :
37+ filters : |
38+ changed:
39+ - "packages/**"
40+ - "pnpm-lock.yaml"
41+
42+ - name : Setup Node.js
43+ if : steps.changes.outputs.changed == 'true'
44+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
45+ with :
46+ node-version : 22
47+ cache : ' pnpm'
48+
49+ - name : Install Dependencies
50+ if : steps.changes.outputs.changed == 'true'
51+ run : pnpm install
52+
53+ - name : Publish Preview
54+ if : steps.changes.outputs.changed == 'true'
55+ run : pnpx pkg-pr-new publish --compact --pnpm ./packages/*
You can’t perform that action at this time.
0 commit comments