@rharkor/caching-for-turbo 2.1.1 → 2.1.2
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/README.md +14 -22
- package/dist/cli/index.js +227 -38
- package/dist/cli/index.js.map +1 -1
- package/dist/setup/index.js +165 -24
- package/dist/setup/index.js.map +1 -1
- package/package.json +2 -2
- package/.env.example +0 -15
- package/action.yml +0 -61
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rharkor/caching-for-turbo",
|
|
3
3
|
"description": "Sets up Turborepo Remote Caching to work with GitHub Actions built-in cache",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/rharkor/caching-for-turbo",
|
|
7
7
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"author": "HUORT Louis (https://louis.huort.com)",
|
|
20
20
|
"exports": {
|
|
21
|
-
".": "./dist/index.js"
|
|
21
|
+
".": "./dist/cli/index.js"
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
24
24
|
"turbogha": "./dist/cli/index.js"
|
package/.env.example
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
S3_ACCESS_KEY_ID=secret
|
|
2
|
-
S3_SECRET_ACCESS_KEY=secret
|
|
3
|
-
S3_BUCKET=my-bucket
|
|
4
|
-
S3_REGION=us-east-1
|
|
5
|
-
S3_ENDPOINT=https://s3.amazonaws.com
|
|
6
|
-
S3_PREFIX=turbogha/
|
|
7
|
-
PROVIDER=s3
|
|
8
|
-
MAX_AGE=1d
|
|
9
|
-
MAX_FILES=100
|
|
10
|
-
MAX_SIZE=100mb
|
|
11
|
-
|
|
12
|
-
TURBOGHA_PORT=41230
|
|
13
|
-
TURBO_API=http://localhost:41230
|
|
14
|
-
TURBO_TOKEN=turbogha
|
|
15
|
-
TURBO_TEAM=turbogha
|
package/action.yml
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
name: 'Caching for Turborepo'
|
|
2
|
-
description:
|
|
3
|
-
'Sets up Turborepo Remote Caching to work with GitHub Actions built-in cache.
|
|
4
|
-
No Vercel account access tokens needed.'
|
|
5
|
-
author: 'HUORT Louis'
|
|
6
|
-
|
|
7
|
-
# Add your action's branding here. This will appear on the GitHub Marketplace.
|
|
8
|
-
branding:
|
|
9
|
-
icon: 'upload-cloud'
|
|
10
|
-
color: 'blue'
|
|
11
|
-
|
|
12
|
-
# Define your inputs here.
|
|
13
|
-
inputs:
|
|
14
|
-
provider:
|
|
15
|
-
description: 'Provider to use for caching (github, s3)'
|
|
16
|
-
required: true
|
|
17
|
-
default: 'github'
|
|
18
|
-
cache-prefix:
|
|
19
|
-
description: 'Prefix for the cache key'
|
|
20
|
-
required: false
|
|
21
|
-
default: turbogha_
|
|
22
|
-
max-age:
|
|
23
|
-
description:
|
|
24
|
-
'Cleanup cache files older than this age (ex: 1mo, 1w, 1d). using
|
|
25
|
-
https://www.npmjs.com/package/parse-duration'
|
|
26
|
-
required: false
|
|
27
|
-
max-files:
|
|
28
|
-
description:
|
|
29
|
-
'Cleanup oldest cache files when number of files exceeds this limit (ex:
|
|
30
|
-
300)'
|
|
31
|
-
required: false
|
|
32
|
-
max-size:
|
|
33
|
-
description:
|
|
34
|
-
'Cleanup oldest cache files when total size exceeds this limit (ex: 100mb,
|
|
35
|
-
10gb)'
|
|
36
|
-
required: false
|
|
37
|
-
s3-access-key-id:
|
|
38
|
-
description: 'AWS S3 access key ID (required when provider is s3)'
|
|
39
|
-
required: false
|
|
40
|
-
s3-secret-access-key:
|
|
41
|
-
description: 'AWS S3 secret access key (required when provider is s3)'
|
|
42
|
-
required: false
|
|
43
|
-
s3-bucket:
|
|
44
|
-
description: 'AWS S3 bucket name (required when provider is s3)'
|
|
45
|
-
required: false
|
|
46
|
-
s3-region:
|
|
47
|
-
description: 'AWS S3 region (required when provider is s3)'
|
|
48
|
-
required: false
|
|
49
|
-
s3-prefix:
|
|
50
|
-
description: 'Prefix for S3 objects'
|
|
51
|
-
required: false
|
|
52
|
-
default: 'turbogha/'
|
|
53
|
-
s3-endpoint:
|
|
54
|
-
description: 'S3 endpoint (required when provider is s3)'
|
|
55
|
-
required: false
|
|
56
|
-
default: 'https://s3.amazonaws.com'
|
|
57
|
-
|
|
58
|
-
runs:
|
|
59
|
-
using: node20
|
|
60
|
-
main: dist/setup/index.js
|
|
61
|
-
post: dist/post/index.js
|