From a6a103fa85275e923cb421a5f6024260dff7f859 Mon Sep 17 00:00:00 2001 From: lonewolfyx Date: Thu, 27 Aug 2026 13:40:45 +0800 Subject: [PATCH] fix(action): remove pnpm installation step and use npx directly - Removed separate pnpm installation step from action workflow - Replaced direct pnpm commands with npx pnpm execution - Updated dependency installation to use npx --yes pnpm@11.9.0 - Modified script execution to use npx --yes pnpm@11.9.0 exec tsx - Simplified action setup by eliminating pnpm action setup dependency --- action.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index 650d50c..80fae3c 100644 --- a/action.yml +++ b/action.yml @@ -45,21 +45,16 @@ runs: using: composite steps: - - name: Install pnpm - uses: pnpm/action-setup@v6 - with: - version: 11.9.0 - - name: Set Node.js uses: actions/setup-node@v7 with: node-version: lts/* package-manager-cache: false - - name: Install dependencies + - name: Install action dependencies shell: bash working-directory: ${{ github.action_path }} - run: pnpm install --frozen-lockfile + run: npx --yes pnpm@11.9.0 install --frozen-lockfile - name: Generate GitHub PR Stats id: generate @@ -70,7 +65,7 @@ runs: INPUT_TOKEN: ${{ inputs.token }} INPUT_OUTPUT: ${{ inputs.output }} INPUT_MAX-ROWS: ${{ inputs.max-rows }} - run: pnpm exec tsx ./src/index.ts + run: npx --yes pnpm@11.9.0 exec tsx ./src/index.ts branding: icon: git-pull-request