Skip to content

Commit c77ae8b

Browse files
authored
store the session on the storage (#121)
* store the session on the storage * test pkg * add the pkg * sync package lock * update the command * fix workflow * add more steps
1 parent 7fd1847 commit c77ae8b

File tree

4 files changed

+662
-10
lines changed

4 files changed

+662
-10
lines changed

.github/workflows/pkg-pr-new.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Preview to pkg.pr.new
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write # Required for pkg.pr.new to comment on PRs
6+
7+
on:
8+
pull_request:
9+
types: [opened, synchronize, reopened]
10+
11+
12+
jobs:
13+
publish-preview:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 24
27+
cache: "npm"
28+
29+
- name: Setup Bun
30+
uses: oven-sh/setup-bun@v2
31+
with:
32+
bun-version: latest
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Build packages
38+
run: npm run build
39+
40+
- name: Resolve workspace dependencies
41+
run: npx tsx .github/resolve-workspace-versions.ts
42+
43+
- name: Publish to pkg.pr.new
44+
run: npx pkg-pr-new publish './packages/sandbox'

0 commit comments

Comments
 (0)