Skip to content

Fix npm publish build order - #4

Merged
brandonscript merged 1 commit into
mainfrom
fix/publish-build-order
Sep 8, 2026
Merged

brandonscript merged 1 commit into
mainfrom
fix/publish-build-order

Conversation

@brandonscript

Copy link
Copy Markdown
Owner

Summary

  • The v2.1.0 publish job failed because publish.sh rewrote workspace:* to ^2.1.0 before yarn build, so Yarn tried to fetch versions that are not on npm yet (and hid the logs).
  • Build packages first, then rewrite dependency ranges for the tarball. Also clear NODE_AUTH_TOKEN so OIDC trusted publishing is not blocked.

Test plan

  • Merge this PR
  • Run Publish to npm via workflow_dispatch on main (do not re-run the failed tag job — it still has the old script)
  • Confirm @mui-flexy/core, v5, v6, v7, and v9 publish at 2.1.0

Made with Cursor

Yarn was resolving ^2.1.0 from the registry during build, before those versions existed. Keep workspace links for the build, then rewrite ranges for the published tarball.

Co-authored-by: Cursor <cursoragent@cursor.com>
@brandonscript
brandonscript merged commit 807cbc1 into main Sep 8, 2026
1 check passed
@brandonscript
brandonscript deleted the fix/publish-build-order branch September 8, 2026 20:38
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.

1 participant