Skip to content

chore(module-federation): add pkg.pr.new preview workflow#4422

Merged
ScriptedAlchemy merged 5 commits intomainfrom
chore/pkg-pr-new-preview-workflow
Feb 12, 2026
Merged

chore(module-federation): add pkg.pr.new preview workflow#4422
ScriptedAlchemy merged 5 commits intomainfrom
chore/pkg-pr-new-preview-workflow

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
Member

Summary

  • add a pkg.pr.new GitHub Actions workflow for pull requests
  • build package workspace targets before publishing preview packages
  • publish only packages in the Changesets fixed synced set

Test plan

  • workflow YAML added and committed
  • verify pkg.pr.new preview comment/check appears on PR after app installation

Made with Cursor

Add a PR preview workflow that publishes only Changesets fixed packages.

Co-authored-by: Cursor <cursoragent@cursor.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 11, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 301e1bc
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/698d057ec44a260008b0b0f1
😎 Deploy Preview https://deploy-preview-4422--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 11, 2026

⚠️ No Changeset found

Latest commit: 301e1bc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 693f70aa7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

run: pnpm install --frozen-lockfile

- name: Build package workspace targets
run: npx nx run-many --targets=build --projects=tag:type:pkg --skip-nx-cache
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Build metro fixed-set packages before publishing previews

publish-preview builds only --projects=tag:type:pkg, but the publish step includes every package in the Changesets fixed set, which currently includes @module-federation/metro, @module-federation/metro-plugin-rnef, and @module-federation/metro-plugin-rnc-cli from .changeset/config.json. The first two are tagged type:metro (see their project.json) and rely on generated dist outputs in package.json (main/files point to dist/*), so they are not built by this workflow before publish; this makes metro preview artifacts incomplete or broken whenever this workflow runs.

Useful? React with 👍 / 👎.

@github-actions
Copy link
Copy Markdown
Contributor

Bundle Size Report

No bundle size changes detected.

Total dist: 6.66 MB (no change)
Total ESM gzip: 137.6 kB (no change)

ScriptedAlchemy and others added 4 commits February 11, 2026 14:31
Retry package build once to reduce transient dts build failures in preview workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
Mirror cache and cleanup setup from checkout-install to reduce CI drift.

Co-authored-by: Cursor <cursoragent@cursor.com>
Treat missing pkg.pr.new app as a non-blocking skip and keep other publish failures blocking.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add SC2016 suppression for embedded node script in pkg preview workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ScriptedAlchemy ScriptedAlchemy merged commit 1177ec7 into main Feb 12, 2026
24 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the chore/pkg-pr-new-preview-workflow branch February 12, 2026 01:43
@2heal1 2heal1 mentioned this pull request Feb 12, 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.

1 participant