Skip to content

Commit 1b341cb

Browse files
ci(repo): scope the remaining global environment variables to the tasks they affect
Remove NPM_VERSION and NEXT_PHASE, which nothing reads. Hash RSDOCTOR only into the clerk-js and ui builds that read it, and TZ only into tests. Pass TZ and the VERCEL variables through to tasks without hashing them, since they don't change any task's output.
1 parent 09c2fc9 commit 1b341cb

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎packages/clerk-js/turbo.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": ["//"],
33
"tasks": {
44
"build": {
5+
"env": ["RSDOCTOR"],
56
"inputs": [
67
"*.d.ts",
78
"src/**",
@@ -22,6 +23,7 @@
2223
},
2324
"build:sandbox": {
2425
"dependsOn": ["^build", "@clerk/localizations#build"],
26+
"env": ["RSDOCTOR"],
2527
"inputs": ["sandbox/**"],
2628
"outputs": ["dist/**"]
2729
},

‎packages/ui/turbo.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"persistent": true
88
},
99
"build": {
10+
"env": ["RSDOCTOR"],
1011
"inputs": [
1112
"*.d.ts",
1213
"src/**",

‎turbo.json‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,11 @@
1616
"globalEnv": [
1717
"CLERK_*",
1818
"EXPO_PUBLIC_CLERK_*",
19-
"NEXT_PHASE",
2019
"NEXT_PUBLIC_CLERK_*",
2120
"NODE_ENV",
22-
"NPM_VERSION",
2321
"PLASMO_PUBLIC_CLERK_*",
2422
"PUBLIC_CLERK_*",
2523
"REACT_APP_CLERK_*",
26-
"RSDOCTOR",
27-
"TZ",
28-
"VERCEL",
29-
"VERCEL_PROJECT_PRODUCTION_URL",
30-
"VERCEL_TARGET_ENV",
3124
"VITE_CLERK_*"
3225
],
3326
"globalPassThroughEnv": [
@@ -38,7 +31,11 @@
3831
"ACTIONS_STEP_DEBUG",
3932
"VERCEL_AUTOMATION_BYPASS_SECRET",
4033
"PORT",
41-
"UI_PORT"
34+
"TZ",
35+
"UI_PORT",
36+
"VERCEL",
37+
"VERCEL_PROJECT_PRODUCTION_URL",
38+
"VERCEL_TARGET_ENV"
4239
],
4340
"tasks": {
4441
"build": {
@@ -106,7 +103,7 @@
106103
},
107104
"test": {
108105
"dependsOn": ["build"],
109-
"env": ["NODE_VERSION"],
106+
"env": ["NODE_VERSION", "TZ"],
110107
"inputs": [
111108
"$TURBO_DEFAULT$",
112109
"*.d.ts",

0 commit comments

Comments
 (0)