@rharkor/caching-for-turbo 2.1.1 → 2.1.3
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 +228 -39
- package/package.json +62 -2
- package/.env.example +0 -15
- package/action.yml +0 -61
- package/dist/cli/index.js.map +0 -1
- package/dist/post/884.index.js +0 -693
- package/dist/post/884.index.js.map +0 -1
- package/dist/post/index.js +0 -27848
- package/dist/post/index.js.map +0 -1
- package/dist/post/licenses.txt +0 -11
- package/dist/post/package.json +0 -3
- package/dist/post/sourcemap-register.cjs +0 -1
- package/dist/post/sourcemap-register.js +0 -1
- package/dist/setup/884.index.js +0 -693
- package/dist/setup/884.index.js.map +0 -1
- package/dist/setup/file.js +0 -12
- package/dist/setup/index.js +0 -201695
- package/dist/setup/index.js.map +0 -1
- package/dist/setup/licenses.txt +0 -11
- package/dist/setup/package.json +0 -3
- package/dist/setup/sourcemap-register.cjs +0 -1
- package/dist/setup/sourcemap-register.js +0 -1
- package/dist/setup/worker.js +0 -194
- package/dist/setup/worker1.js +0 -170
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ the following step **before** you run `turbo build`:
|
|
|
55
55
|
|
|
56
56
|
```yaml
|
|
57
57
|
- name: Cache for Turbo
|
|
58
|
-
uses: rharkor/caching-for-turbo@v2.1.
|
|
58
|
+
uses: rharkor/caching-for-turbo@v2.1.1
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
This GitHub Action facilitates:
|
|
@@ -88,22 +88,22 @@ server:
|
|
|
88
88
|
|
|
89
89
|
```bash
|
|
90
90
|
# Start the server in background mode (recommended for development)
|
|
91
|
-
turbogha
|
|
91
|
+
turbogha start
|
|
92
92
|
|
|
93
93
|
# Or run the server in foreground mode
|
|
94
|
-
turbogha --
|
|
94
|
+
turbogha start --foreground
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
To stop the server, you can use the following command:
|
|
98
98
|
|
|
99
99
|
```bash
|
|
100
|
-
turbogha
|
|
100
|
+
turbogha kill
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
To ping the server, you can use the following command:
|
|
104
104
|
|
|
105
105
|
```bash
|
|
106
|
-
turbogha
|
|
106
|
+
turbogha ping
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
### Environment Configuration
|
|
@@ -115,11 +115,11 @@ Create a `.env` file in your project root to configure the cache server:
|
|
|
115
115
|
PROVIDER=s3
|
|
116
116
|
|
|
117
117
|
# S3 Configuration (required when using s3 provider)
|
|
118
|
-
S3_ACCESS_KEY_ID
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
AWS_ACCESS_KEY_ID=secret # Or S3_ACCESS_KEY_ID
|
|
119
|
+
AWS_SECRET_ACCESS_KEY=secret # Or S3_SECRET_ACCESS_KEY
|
|
120
|
+
AWS_REGION=us-east-1 # Or AWS_DEFAULT_REGION or S3_REGION
|
|
121
|
+
AWS_ENDPOINT_URL_S3=https://s3.amazonaws.com # Or AWS_ENDPOINT_URL or S3_ENDPOINT
|
|
122
|
+
S3_BUCKET=my-bucket
|
|
123
123
|
S3_PREFIX=turbogha/
|
|
124
124
|
|
|
125
125
|
# Optional: Custom cache prefix
|
|
@@ -147,7 +147,7 @@ _See: https://turborepo.com/docs/reference/system-environment-variables_
|
|
|
147
147
|
To stop the cache server:
|
|
148
148
|
|
|
149
149
|
```bash
|
|
150
|
-
turbogha
|
|
150
|
+
turbogha kill
|
|
151
151
|
# or
|
|
152
152
|
curl -X DELETE http://localhost:41230/shutdown
|
|
153
153
|
```
|
|
@@ -162,7 +162,7 @@ with:
|
|
|
162
162
|
cache-prefix: turbogha_ # Custom prefix for cache keys
|
|
163
163
|
provider: github # Storage provider: 'github' (default) or 's3'
|
|
164
164
|
|
|
165
|
-
# S3 Provider Configuration (
|
|
165
|
+
# S3 Provider Configuration (variables will be read from environment variables if not provided)
|
|
166
166
|
s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }} # S3 access key
|
|
167
167
|
s3-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }} # S3 secret key
|
|
168
168
|
s3-bucket: your-bucket-name # S3 bucket name
|
|
@@ -200,14 +200,10 @@ Example S3 configuration:
|
|
|
200
200
|
|
|
201
201
|
```yaml
|
|
202
202
|
- name: Cache for Turbo
|
|
203
|
-
uses: rharkor/caching-for-turbo@v2.1.
|
|
203
|
+
uses: rharkor/caching-for-turbo@v2.1.1
|
|
204
204
|
with:
|
|
205
205
|
provider: s3
|
|
206
|
-
s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
|
|
207
|
-
s3-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }}
|
|
208
206
|
s3-bucket: my-turbo-cache-bucket
|
|
209
|
-
s3-region: us-west-2
|
|
210
|
-
s3-endpoint: https://s3.amazonaws.com
|
|
211
207
|
```
|
|
212
208
|
|
|
213
209
|
### Cache Cleanup Options
|
|
@@ -238,14 +234,10 @@ Example with cleanup configuration:
|
|
|
238
234
|
|
|
239
235
|
```yaml
|
|
240
236
|
- name: Cache for Turbo
|
|
241
|
-
uses: rharkor/caching-for-turbo@v2.1.
|
|
237
|
+
uses: rharkor/caching-for-turbo@v2.1.1
|
|
242
238
|
with:
|
|
243
239
|
provider: s3
|
|
244
|
-
s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
|
|
245
|
-
s3-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }}
|
|
246
240
|
s3-bucket: my-turbo-cache-bucket
|
|
247
|
-
s3-region: us-west-2
|
|
248
|
-
s3-endpoint: https://s3.amazonaws.com
|
|
249
241
|
# Cleanup configuration
|
|
250
242
|
max-age: 2w
|
|
251
243
|
max-size: 5gb
|