@lage-run/cache-github-actions 0.1.20 → 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,37 @@
2
2
  "name": "@lage-run/cache-github-actions",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 11 Sep 2024 20:30:17 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",
21
+ "version": "0.1.21",
22
+ "tag": "@lage-run/cache-github-actions_v0.1.21",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "email not defined",
27
+ "package": "@lage-run/cache-github-actions",
28
+ "commit": "067b34dac0e6621e6dab889b4ecb3ffb96ed3b7c",
29
+ "comment": "Update dependency workspace-tools to v0.37.0"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Wed, 11 Sep 2024 20:30:48 GMT",
6
36
  "version": "0.1.20",
7
37
  "tag": "@lage-run/cache-github-actions_v0.1.20",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @lage-run/cache-github-actions
2
2
 
3
- This log was last generated on Wed, 11 Sep 2024 20:30:17 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
+
15
+ ## 0.1.21
16
+
17
+ Tue, 22 Oct 2024 15:19:29 GMT
18
+
19
+ ### Patches
20
+
21
+ - Update dependency workspace-tools to v0.37.0 (email not defined)
22
+
7
23
  ## 0.1.20
8
24
 
9
- Wed, 11 Sep 2024 20:30:17 GMT
25
+ Wed, 11 Sep 2024 20:30:48 GMT
10
26
 
11
27
  ### Patches
12
28
 
@@ -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.20",
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.36.4"
22
+ "workspace-tools": "0.38.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@lage-run/monorepo-scripts": "*"