diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8320ecf6ca..022df6b2e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,13 @@ jobs: with: cache: true + - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 + with: + path: node_modules + key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: 📦 Install dependencies (root only, no scripts) - run: pnpm install --filter . --ignore-scripts + run: pnpm install --ignore-scripts - name: 🔠 Lint project run: pnpm lint @@ -58,6 +63,11 @@ jobs: with: cache: true + - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 + with: + path: node_modules + key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: 📦 Install dependencies run: pnpm install @@ -80,6 +90,11 @@ jobs: with: cache: true + - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 + with: + path: node_modules + key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: 📦 Install dependencies run: pnpm install @@ -108,6 +123,11 @@ jobs: with: cache: true + - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 + with: + path: node_modules + key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: 📦 Install dependencies run: pnpm install @@ -146,6 +166,11 @@ jobs: with: cache: true + - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 + with: + path: node_modules + key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: 📦 Install dependencies run: pnpm install @@ -174,6 +199,11 @@ jobs: with: cache: true + - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 + with: + path: node_modules + key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: 📦 Install dependencies run: pnpm install @@ -202,6 +232,11 @@ jobs: with: cache: true + - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 + with: + path: node_modules + key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: 📦 Install dependencies run: pnpm install