Skip to content

Commit 2d04de4

Browse files
committed
ci: pkg.pr.new pnpm
1 parent c601137 commit 2d04de4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ jobs:
99
- name: Checkout code
1010
uses: actions/checkout@v4
1111

12+
- run: npm install -g corepack@latest
13+
- run: corepack enable
14+
1215
- uses: actions/setup-node@v4
1316
with:
1417
node-version: 22
15-
cache: 'npm'
18+
cache: 'pnpm'
1619

1720
- name: Install dependencies
18-
run: npm install
21+
run: pnpm install
1922

2023
- name: Build
21-
run: npm run build
24+
run: pnpm build
2225

23-
- run: npx pkg-pr-new publish
26+
- run: pnpx pkg-pr-new publish

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"module": "./dist/vue-advanced-chat.mjs",
3131
"unpkg": "./dist/vue-advanced-chat.umd.js",
3232
"jsdelivr": "./dist/vue-advanced-chat.umd.js",
33+
"packageManager": "[email protected]",
3334
"scripts": {
3435
"dev": "vite",
3536
"build": "vite build",

0 commit comments

Comments
 (0)