Skip to content

fix: pass POSTHOG_PUBLIC_KEY to npm publish step#284

Merged
felipefreitag merged 1 commit intomainfrom
fix/npm-publish-posthog-env
Apr 17, 2026
Merged

fix: pass POSTHOG_PUBLIC_KEY to npm publish step#284
felipefreitag merged 1 commit intomainfrom
fix/npm-publish-posthog-env

Conversation

@felipefreitag
Copy link
Copy Markdown
Contributor

@felipefreitag felipefreitag commented Apr 17, 2026

npm publish triggers the prepack script which rebuilds the bundle and runs verify-bundle. The previous Build and Verify steps were redundant since prepack does both. Remove them and pass the env var to the publish step so the prepack build has access to it.


Summary by cubic

Fix release workflow by passing POSTHOG_PUBLIC_KEY to the npm publish step so the prepack build can access it. Removed redundant Build and Verify steps because npm publish already triggers prepack, which rebuilds and runs verify-bundle.

Written for commit 7f535c1. Summary will update on new commits.

npm publish triggers the prepack script which rebuilds the bundle
and runs verify-bundle. The previous Build and Verify steps were
redundant since prepack does both. Remove them and pass the env
var to the publish step so the prepack build has access to it.
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@felipefreitag felipefreitag merged commit 403a588 into main Apr 17, 2026
8 of 9 checks passed
@felipefreitag felipefreitag deleted the fix/npm-publish-posthog-env branch April 17, 2026 17:09
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