@lage-run/cache-github-actions 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@lage-run/cache-github-actions",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 22 Oct 2024 15:18:55 GMT",
5
+ "date": "Wed, 20 Nov 2024 08:12:07 GMT",
6
+ "version": "0.1.22",
7
+ "tag": "@lage-run/cache-github-actions_v0.1.22",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "email not defined",
12
+ "package": "@lage-run/cache-github-actions",
13
+ "commit": "c6e9f4e5339a897dd06a54fe528a1fadd75db243",
14
+ "comment": "Update dependency workspace-tools to v0.38.1"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 22 Oct 2024 15:19:29 GMT",
6
21
  "version": "0.1.21",
7
22
  "tag": "@lage-run/cache-github-actions_v0.1.21",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @lage-run/cache-github-actions
2
2
 
3
- <!-- This log was last generated on Tue, 22 Oct 2024 15:18:55 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Wed, 20 Nov 2024 08:12:07 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.1.22
8
+
9
+ Wed, 20 Nov 2024 08:12:07 GMT
10
+
11
+ ### Patches
12
+
13
+ - Update dependency workspace-tools to v0.38.1 (email not defined)
14
+
7
15
  ## 0.1.21
8
16
 
9
- Tue, 22 Oct 2024 15:18:55 GMT
17
+ Tue, 22 Oct 2024 15:19:29 GMT
10
18
 
11
19
  ### Patches
12
20
 
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cacheProvider.ts"],"sourcesContent":["import cache from \"@actions/cache\";\nimport type { CustomStorageConfig } from \"backfill-config\";\nimport type { Logger } from \"backfill-logger\";\nimport path from \"path\";\nimport { getWorkspaceRoot } from \"workspace-tools\";\n\nconst root = getWorkspaceRoot(process.cwd())!;\n\nconst cacheProvider: CustomStorageConfig = {\n provider: (_logger: Logger, cwd: string) => {\n return {\n async fetch(hash: string): Promise<boolean> {\n if (!hash) {\n return false;\n }\n\n const paths = [path.relative(root, path.join(cwd, \"**\"))];\n const restoreKeys = [\"lage-\"];\n\n const cacheKey = await cache.restoreCache(paths, hash, restoreKeys);\n\n return !!cacheKey;\n },\n\n async put(hash: string, filesToCache: string[]): Promise<void> {\n if (!hash) {\n return;\n }\n\n const paths = filesToCache.map((files) => path.relative(root, path.join(cwd, files)));\n\n await cache.saveCache(paths, hash);\n },\n };\n },\n name: \"github-actions\",\n};\n\nexport { cacheProvider };\n"],"names":["cacheProvider","root","getWorkspaceRoot","process","cwd","provider","_logger","fetch","hash","paths","path","relative","join","restoreKeys","cacheKey","cache","restoreCache","put","filesToCache","map","files","saveCache","name"],"mappings":";;;;+BAsCSA;;;eAAAA;;;8DAtCS;6DAGD;gCACgB;;;;;;AAEjC,MAAMC,OAAOC,IAAAA,gCAAgB,EAACC,QAAQC,GAAG;AAEzC,MAAMJ,gBAAqC;IACzCK,UAAU,CAACC,SAAiBF;QAC1B,OAAO;YACL,MAAMG,OAAMC,IAAY;gBACtB,IAAI,CAACA,MAAM;oBACT,OAAO;gBACT;gBAEA,MAAMC,QAAQ;oBAACC,aAAI,CAACC,QAAQ,CAACV,MAAMS,aAAI,CAACE,IAAI,CAACR,KAAK;iBAAO;gBACzD,MAAMS,cAAc;oBAAC;iBAAQ;gBAE7B,MAAMC,WAAW,MAAMC,cAAK,CAACC,YAAY,CAACP,OAAOD,MAAMK;gBAEvD,OAAO,CAAC,CAACC;YACX;YAEA,MAAMG,KAAIT,IAAY,EAAEU,YAAsB;gBAC5C,IAAI,CAACV,MAAM;oBACT;gBACF;gBAEA,MAAMC,QAAQS,aAAaC,GAAG,CAAC,CAACC,QAAUV,aAAI,CAACC,QAAQ,CAACV,MAAMS,aAAI,CAACE,IAAI,CAACR,KAAKgB;gBAE7E,MAAML,cAAK,CAACM,SAAS,CAACZ,OAAOD;YAC/B;QACF;IACF;IACAc,MAAM;AACR"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { cacheProvider as default } from \"./cacheProvider.js\";\n"],"names":["default","cacheProvider"],"mappings":";;;;+BAA0BA;;;eAAjBC,4BAAa;;;+BAAmB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/cache-github-actions",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Github Action Cache for Lage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "@actions/cache": "3.2.4",
20
20
  "backfill-config": "6.4.2",
21
21
  "backfill-logger": "5.2.1",
22
- "workspace-tools": "0.37.0"
22
+ "workspace-tools": "0.38.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@lage-run/monorepo-scripts": "*"