fix: use pnpm when publishing (#8092)
This commit is contained in:
@@ -50,6 +50,11 @@ jobs:
|
|||||||
node-version: '20'
|
node-version: '20'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4
|
||||||
|
with:
|
||||||
|
version: 9
|
||||||
|
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
|
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
|
||||||
|
|
||||||
@@ -86,15 +91,15 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
cd ui
|
cd ui
|
||||||
npm ci
|
pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: |
|
run: |
|
||||||
cd ui/acp
|
cd ui/acp
|
||||||
npm run build
|
pnpm run build
|
||||||
|
|
||||||
cd ../text
|
cd ../text
|
||||||
npm run build
|
pnpm run build
|
||||||
|
|
||||||
- name: Dry run summary
|
- name: Dry run summary
|
||||||
if: inputs.dry-run == true || github.ref != 'refs/heads/main'
|
if: inputs.dry-run == true || github.ref != 'refs/heads/main'
|
||||||
@@ -121,8 +126,8 @@ jobs:
|
|||||||
id: changesets
|
id: changesets
|
||||||
uses: changesets/action@6d3568c53fbe1db6c1f9ab1c7fbf9092bc18627f # v1
|
uses: changesets/action@6d3568c53fbe1db6c1f9ab1c7fbf9092bc18627f # v1
|
||||||
with:
|
with:
|
||||||
publish: npm run release
|
publish: pnpm run release
|
||||||
version: npm run version
|
version: pnpm run version
|
||||||
commit: 'chore: version packages'
|
commit: 'chore: version packages'
|
||||||
title: 'chore: version packages'
|
title: 'chore: version packages'
|
||||||
cwd: ui
|
cwd: ui
|
||||||
|
|||||||
Reference in New Issue
Block a user