From a8f2b326770db908737e5eb4055c93f451d3034b Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Thu, 20 Feb 2025 13:44:30 -0500 Subject: [PATCH] chore: added caching to speed up pr and Ci builds. --- .github/workflows/ci.yml | 12 ++++++++++-- .github/workflows/pr.yml | 10 +++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76f226cc..fd5ee220 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,17 +10,25 @@ permissions: packages: write jobs: - build-and-package: + cache-build-and-package: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - name: Setup pnpm uses: pnpm/action-setup@v4 + with: + version: latest - name: Install Dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Build Package run: pnpm build diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0e3f324a..4b225a93 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,9 +11,17 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 + with: + version: latest + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' - name: Install Dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Build Package run: pnpm build