From e8eaa7d45b5688574c8a4709b852112063dc3793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=BF=B5=E9=80=8D=E9=81=A5?= <2589141604@qq.com> Date: Thu, 4 Sep 2025 12:35:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dnpm=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-cloudflare.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-cloudflare.yml b/.github/workflows/deploy-cloudflare.yml index 81b5e6d..3be97ee 100644 --- a/.github/workflows/deploy-cloudflare.yml +++ b/.github/workflows/deploy-cloudflare.yml @@ -31,15 +31,20 @@ jobs: - name: ➡️ Checkout repository uses: actions/checkout@v4 + - name: 📦 Setup pnpm + uses: pnpm/action-setup@v4.1.0 + with: + version: latest + - name: 📦 Setup Node.js uses: actions/setup-node@v4 with: node-version: "20" - cache: "npm" - cache-dependency-path: "./mail-worker/package-lock.json" + cache: "pnpm" + cache-dependency-path: "./mail-worker/pnpm-lock.yaml" - name: 📥 Install dependencies - run: npm ci + run: pnpm install --frozen-lockfile working-directory: ./mail-worker - name: 📡 Disable wrangler telemetry