diff --git a/.github/actions/cache-setup/action.yml b/.github/actions/cache-setup/action.yml new file mode 100644 index 00000000..e1bd29f5 --- /dev/null +++ b/.github/actions/cache-setup/action.yml @@ -0,0 +1,27 @@ +name: "Cache setup." +description: "Speed up pnpm installation and turbo runs with caching." +branding: + icon: "box" + color: "blue" +runs: + using: composite + steps: + - uses: actions/checkout@v4 + - name: Cache turbo build setup + uses: actions/cache@v4 + with: + path: .turbo + key: ${{ runner.os }}-turbo-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-turbo- + - name: Install pnpm + uses: pnpm/action-setup@v4 + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: "https://registry.npmjs.org" + cache: "pnpm" + - name: Install dependencies + run: pnpm install --frozen-lockfile + shell: bash