diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 30b4600..5fdfd6d 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -111,6 +111,13 @@ jobs: npm install -g pnpm echo "✅ pnpm安装完成: $(pnpm --version)" fi + - name: Cache node modules + uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - name: 设置 pnpm 缓存目录 shell: bash