1
0
Fork 0
mirror of https://github.com/rharkor/caching-for-turbo.git synced 2025-06-08 01:37:01 +09:00
caching-for-turbo/action.yml
2025-04-10 14:39:27 +02:00

41 lines
1.1 KiB
YAML

name: 'Caching for Turborepo'
description:
'Sets up Turborepo Remote Caching to work with GitHub Actions built-in cache.
No Vercel account access tokens needed.'
author: 'HUORT Louis'
# Add your action's branding here. This will appear on the GitHub Marketplace.
branding:
icon: 'upload-cloud'
color: 'blue'
# Define your inputs here.
inputs:
provider:
description: 'Provider to use for caching (github)'
required: true
default: 'github'
cache-prefix:
description: 'Prefix for the cache key'
required: false
default: turbogha_
max-age:
description:
'Cleanup cache files older than this age (ex: 1mo, 1w, 1d). using
https://www.npmjs.com/package/parse-duration'
required: false
max-files:
description:
'Cleanup oldest cache files when number of files exceeds this limit (ex:
300)'
required: false
max-size:
description:
'Cleanup oldest cache files when total size exceeds this limit (ex: 100mb,
10gb)'
required: false
runs:
using: node20
main: dist/setup/index.js
post: dist/post/index.js