Skip to content

Commit 18bc030

Browse files
authored
fix: use pnpm when publishing (#8092)
1 parent 6b14cff commit 18bc030

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ jobs:
5050
node-version: '20'
5151
registry-url: 'https://registry.npmjs.org'
5252

53+
- name: Setup pnpm
54+
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4
55+
with:
56+
version: 9
57+
5358
- name: Setup Rust
5459
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
5560

@@ -86,15 +91,15 @@ jobs:
8691
- name: Install dependencies
8792
run: |
8893
cd ui
89-
npm ci
94+
pnpm install --frozen-lockfile
9095
9196
- name: Build packages
9297
run: |
9398
cd ui/acp
94-
npm run build
99+
pnpm run build
95100
96101
cd ../text
97-
npm run build
102+
pnpm run build
98103
99104
- name: Dry run summary
100105
if: inputs.dry-run == true || github.ref != 'refs/heads/main'
@@ -121,8 +126,8 @@ jobs:
121126
id: changesets
122127
uses: changesets/action@6d3568c53fbe1db6c1f9ab1c7fbf9092bc18627f # v1
123128
with:
124-
publish: npm run release
125-
version: npm run version
129+
publish: pnpm run release
130+
version: pnpm run version
126131
commit: 'chore: version packages'
127132
title: 'chore: version packages'
128133
cwd: ui

0 commit comments

Comments
 (0)