Skip to content

Commit 09c2fc9

Browse files
ci(repo): hash NODE_VERSION only into test tasks
NODE_VERSION was in globalEnv, so the Unit Tests jobs (which set it per Node version) computed different build hashes from the Build Packages job (which does not set it) and rebuilt every package the PR changed. Scoping it to the test task keeps test results separate per Node version and lets every job share build cache entries.
1 parent d75b38c commit 09c2fc9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎turbo.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"NEXT_PHASE",
2020
"NEXT_PUBLIC_CLERK_*",
2121
"NODE_ENV",
22-
"NODE_VERSION",
2322
"NPM_VERSION",
2423
"PLASMO_PUBLIC_CLERK_*",
2524
"PUBLIC_CLERK_*",
@@ -107,6 +106,7 @@
107106
},
108107
"test": {
109108
"dependsOn": ["build"],
109+
"env": ["NODE_VERSION"],
110110
"inputs": [
111111
"$TURBO_DEFAULT$",
112112
"*.d.ts",

0 commit comments

Comments
 (0)