chore: update GitHub Actions workflow to enable corepack for pnpm installation

Replaced the pnpm action setup with a corepack enable command to streamline dependency management in the workflow.
This commit is contained in:
kangfenmao 2026-01-07 18:46:07 +08:00
parent 7766438853
commit 8d56bf80dd

View File

@ -154,9 +154,10 @@ jobs:
with:
node-version: 22
- name: Install pnpm
- name: Enable corepack
if: steps.check.outputs.should_run == 'true'
uses: pnpm/action-setup@v4
working-directory: main
run: corepack enable pnpm
- name: Install dependencies
if: steps.check.outputs.should_run == 'true'