Skip to content

Commit 5eb1039

Browse files
feat(ci): add preview workflow for publishing to pkg.pr.new
1 parent a7d9e5c commit 5eb1039

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/preview.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: preview
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: oven-sh/setup-bun@v2
13+
14+
- name: Install dependencies
15+
run: bun install
16+
17+
- name: Build package
18+
run: bun run build && tree -s -h dist
19+
20+
- run: bun x pkg-pr-new publish

0 commit comments

Comments
 (0)