feat: include a hash of deno.lock files in the cache key automatically (#98)

This commit is contained in:
David Sherret
2025-05-13 12:53:56 -04:00
committed by GitHub
parent fd6b0ad149
commit 3169cf993b
12 changed files with 1993 additions and 830 deletions

View File

@@ -1,4 +0,0 @@
import "./semver-DmxAwBYV.mjs";
import { restoreCache, saveCache } from "./cache-DzONlZ-I.mjs";
export { restoreCache };

4
dist/cache-D7LLZXo3.mjs vendored Normal file
View File

@@ -0,0 +1,4 @@
import "./semver-DmxAwBYV.mjs";
import { restoreCache, saveCache } from "./cache-zjpbixka.mjs";
export { restoreCache };

File diff suppressed because it is too large Load Diff

7
dist/main.mjs vendored
View File

@@ -20318,6 +20318,9 @@ function exit(message) {
import_core.setFailed(message);
process$1.exit();
}
function isCachingEnabled() {
return import_core.getInput("cache") === "true" || import_core.getInput("cache-hash").length > 0;
}
async function main() {
try {
const denoVersionFile = import_core.getInput("deno-version-file");
@@ -20331,8 +20334,8 @@ async function main() {
import_core.setOutput("deno-version", version.version);
import_core.setOutput("release-channel", version.kind);
import_core.info("Installation complete.");
if (import_core.getInput("cache") === "true") {
const { restoreCache } = await import("./cache-ByPW8-iO.mjs");
if (isCachingEnabled()) {
const { restoreCache } = await import("./cache-D7LLZXo3.mjs");
await restoreCache(import_core.getInput("cache-hash"));
}
} catch (err) {

2
dist/post.mjs vendored
View File

@@ -1,5 +1,5 @@
import { import_core } from "./semver-DmxAwBYV.mjs";
import { saveCache } from "./cache-DzONlZ-I.mjs";
import { saveCache } from "./cache-zjpbixka.mjs";
import process from "node:process";
//#region src/post.ts