Skip to content

Commit a593a09

Browse files
authored
chore: pass turbo remote cache options in environment variables (#6479)
1 parent 3416632 commit a593a09

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

scripts/turbo/index.js

+7-9
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@ const { spawnProcess } = require("../utils/spawn-process");
33
const path = require("path");
44

55
const runTurbo = async (task, args, apiSecret, apiEndpoint) => {
6-
let command = ["turbo", "run", task];
7-
if (apiSecret && apiEndpoint) {
8-
command = command.concat([
9-
`--api=${apiEndpoint}`,
10-
"--team=aws-sdk-js",
11-
`--token=${apiSecret}`,
12-
"--concurrency=100%",
13-
]);
14-
}
6+
let command = ["turbo", "run", task, "--concurrency=100%"];
157
command = command.concat(args);
168
const turboRoot = path.join(__dirname, "..", "..");
179
try {
@@ -21,6 +13,12 @@ const runTurbo = async (task, args, apiSecret, apiEndpoint) => {
2113
env: {
2214
...process.env,
2315
TURBO_TELEMETRY_DISABLED: "1",
16+
...(apiSecret &&
17+
apiEndpoint && {
18+
TURBO_API: apiEndpoint,
19+
TURBO_TOKEN: apiSecret,
20+
TURBO_TEAM: "aws-sdk-js",
21+
}),
2422
},
2523
});
2624
} catch (error) {

0 commit comments

Comments
 (0)