diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 4f89321..447cea3 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -26,7 +26,15 @@ jobs: - name: install pnpm run: npm i -g pnpm + - name: cache packages + id: pnpm-cache + uses: actions/cache@v4 + with: + path: "~/.pnpm-store" + key: ${{ runner.os }}-pnpm-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/package.json') }} + - name: Install packages + if: steps.pnpm-cache.outputs.cache-hit != 'true' run: pnpm i - name: run pnpm build