feat: add built-in caching via inputs (#89)

This commit is contained in:
Christian Svensson
2025-05-12 18:53:44 +02:00
committed by GitHub
parent a1496dd8d9
commit fd6b0ad149
14 changed files with 63237 additions and 19455 deletions

View File

@@ -13,7 +13,14 @@ inputs:
deno-binary-name:
description: The name to use for the binary.
default: "deno"
cache:
description: Cache downloaded modules & packages automatically in GitHub Actions cache.
default: "false"
cache-hash:
description: A hash used as part of the cache key. Use e.g. `$\{{ hashFiles('**/deno.lock') }}` to cache based on the lockfile contents.
outputs:
cache-hit:
description: A boolean indicating whether the cache was hit.
deno-version:
description: "The Deno version that was installed."
release-channel:
@@ -21,3 +28,5 @@ outputs:
runs:
using: "node20"
main: "dist/main.mjs"
post: "dist/post.mjs"
post-if: always()