diff --git a/.github/workflows/ci-push-release-branches.yml b/.github/workflows/ci-push-release-branches.yml index 136f34a..633090d 100644 --- a/.github/workflows/ci-push-release-branches.yml +++ b/.github/workflows/ci-push-release-branches.yml @@ -14,13 +14,32 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Node & pnpm - uses: carere/setup-node-and-pnpm@v1.2 + - name: Install Node.js + uses: actions/setup-node@v4 with: - node-version: 20 - pnpm-version: 8 + node-version: 20 - - name: Install dependencies + - name: Install pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 + run_install: false + + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - name: Setup pnpm cache + uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install Dependencies run: pnpm i - name: Run tests