From 1feb0600774402b2bf60a19ef8efa2769f7e1ffd Mon Sep 17 00:00:00 2001 From: Clement Date: Thu, 5 Sep 2024 07:47:02 +0800 Subject: [PATCH] feat: workflow cache --- .github/workflows/build.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 619ff31..2322104 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,21 +15,25 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - cache-dependency-path: "**/go.sum" - - uses: pnpm/action-setup@v4 name: Install pnpm with: version: 9 run_install: false + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + - uses: actions/setup-go@v5 with: go-version: '^1.23' + cache-dependency-path: "**/go.sum" - name: Install Protoc uses: arduino/setup-protoc@v3