Skip to content

Fix turbo publish task: missing build + swallowed auth token - #74

Merged
alisonjlai merged 1 commit into
mainfrom
fix-turbo-publish-env
Aug 20, 2026
Merged

Fix turbo publish task: missing build + swallowed auth token#74
alisonjlai merged 1 commit into
mainfrom
fix-turbo-publish-env

Conversation

@alisonjlai

@alisonjlai alisonjlai commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Problem

Publish step failed for a package bump.

publish task depended on ^build (upstream packages only), so it never built itself — CI published a tarball missing dist/. It also declared no passThroughEnv, so turbo's strict env mode silently dropped YARN_NPM_AUTH_TOKEN before it reached yarn npm publish (YN0033).

Fix

-  "dependsOn": ["^build"],
+  "dependsOn": ["build"],
+  "passThroughEnv": ["YARN_NPM_AUTH_TOKEN"],

Testing

Verified via turbo run publish --dry-run=json: publish now depends on its own build task. Verified env passthrough with a temporary proof task (removed before commit): token was undefined without passThroughEnv, visible with it.

@alisonjlai
alisonjlai marked this pull request as ready for review August 20, 2026 03:12
@alisonjlai
alisonjlai requested a review from a team August 20, 2026 03:12
@alisonjlai
alisonjlai merged commit 241266c into main Aug 20, 2026
9 checks passed
@alisonjlai
alisonjlai deleted the fix-turbo-publish-env branch August 20, 2026 03:21
@alisonjlai alisonjlai mentioned this pull request Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants