Nx plugin to use Cloud Storage as remote cache.
npm install -D @nx-extend/gcp-task-runner
Update your nx.json
with the following
{
"tasksRunnerOptions": {
"default": {
"runner": "@nx-extend/gcp-task-runner",
"options": {
"bucket": "gs://your-bucket",
...
}
}
}
}
The task runner uses @google-cloud/storage
which in turn is capable of using the env variable GOOGLE_APPLICATION_CREDENTIALS
.