Skip to content

Commit 5267c26

Browse files
committed
ci: add pkg.pr.new
1 parent 01c2b1a commit 5267c26

File tree

4 files changed

+431
-7
lines changed

4 files changed

+431
-7
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 22
16+
cache: "pnpm"
17+
18+
- name: Install dependencies
19+
run: pnpm install
20+
21+
- name: Build
22+
run: pnpm build
23+
24+
- run: pnpx pkg-pr-new publish '.'

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [18]
11+
node-version: [22]
1212
os: [macos-latest, windows-latest, ubuntu-latest]
1313

1414
steps:

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
},
3737
"devDependencies": {
3838
"esbuild": "latest",
39-
"vite": "latest",
40-
"vitest": "latest",
41-
"typescript": "latest"
39+
"pkg-pr-new": "latest",
40+
"typescript": "latest",
41+
"vitest": "latest"
4242
}
4343
}

0 commit comments

Comments
 (0)