Skip to content

Commit

Permalink
fix: manually add cache action to ghpage
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Aug 23, 2024
1 parent c23b1de commit ca241db
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/actions/cache-setup/action.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ca241db

Please sign in to comment.