From d6f6c773a72082190cf91ba0f8431adcf3523f2a Mon Sep 17 00:00:00 2001 From: mini2024 Date: Sun, 6 Apr 2025 03:31:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=93=E5=AD=98=E5=91=BD?= =?UTF-8?q?=E4=B8=AD=E7=8A=B6=E6=80=81=E7=9A=84=E8=BE=93=E5=87=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E5=B9=B6=E6=9B=B4=E6=96=B0=20pnpm=20?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E4=BF=9D=E5=AD=98=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup-node-environment/action.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setup-node-environment/action.yml b/setup-node-environment/action.yml index 8a84193..912d00c 100644 --- a/setup-node-environment/action.yml +++ b/setup-node-environment/action.yml @@ -182,6 +182,7 @@ runs: restore-keys: | ${{ runner.os }}-pnpm-store- + # https://github.com/pnpm/pnpm/issues/7192#issuecomment-2353298966 - run: echo "package-import-method=hardlink" >> .npmrc shell: bash @@ -208,18 +209,15 @@ runs: - name: 📊 显示缓存命中状态 run: | - echo "cache-hit: ${{ steps.cache-pnpm-restore.outputs.cache-hit }}" + echo "cache-hit: ${{ steps.cache-pnpm-restore.outputs.cache-hit }}" shell: bash - id: cache-pnpm-save - if: always() && steps.cache-pnpm-restore.outputs.cache-hit == 'false' + if: always() && steps.cache-pnpm-restore.outputs.cache-hit != 'true' uses: actions/cache/save@v4 with: path: ${{ steps.pnpm-store-dir.outputs.pnpmStoreDir }} key: ${{ steps.cache-pnpm-restore.outputs.cache-primary-key }} -# # https://github.com/pnpm/pnpm/issues/7192#issuecomment-2353298966 -# package-import-method=hardlink - # rm -r node_modules # pnpm fetch # pnpm install --offline