File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-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
+ pull_request :
6
+ types : [closed]
7
+
8
+ jobs :
9
+ preview :
10
+ if : github.repository == 'web-infra-dev/rslib' && github.event.pull_request.merged == true
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 1
18
+
19
+ - name : Install pnpm
20
+ run : |
21
+ npm install -g corepack@latest --force
22
+ corepack enable
23
+
24
+ - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
25
+ id : changes
26
+ with :
27
+ predicate-quantifier : ' every'
28
+ filters : |
29
+ changed:
30
+ - "packages/**"
31
+ - "pnpm-lock.yaml"
32
+
33
+ - name : Setup Node.js
34
+ if : steps.changes.outputs.changed == 'true'
35
+ uses : actions/setup-node@v4
36
+ with :
37
+ node-version : 22
38
+ cache : ' pnpm'
39
+
40
+ - name : Install Dependencies
41
+ if : steps.changes.outputs.changed == 'true'
42
+ run : pnpm install
43
+
44
+ - name : Publish Preview
45
+ if : steps.changes.outputs.changed == 'true'
46
+ run : pnpx pkg-pr-new publish --compact --pnpm
You can’t perform that action at this time.
0 commit comments