修复npm缓存错误 (#112)

This commit is contained in:
梦念逍遥
2025-09-04 12:35:21 +08:00
committed by eoao
parent 613582c13e
commit 2fd34b407e

View File

@@ -31,15 +31,20 @@ jobs:
- name: ➡️ Checkout repository - name: ➡️ Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v4.1.0
with:
version: latest
- name: 📦 Setup Node.js - name: 📦 Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: "20" node-version: "20"
cache: "npm" cache: "pnpm"
cache-dependency-path: "./mail-worker/package-lock.json" cache-dependency-path: "./mail-worker/pnpm-lock.yaml"
- name: 📥 Install dependencies - name: 📥 Install dependencies
run: npm ci run: pnpm install --frozen-lockfile
working-directory: ./mail-worker working-directory: ./mail-worker
- name: 📡 Disable wrangler telemetry - name: 📡 Disable wrangler telemetry