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