Skip to content

Fix CD publish failure by excluding private workspaces from Lerna publish#15977

Draft
Copilot wants to merge 2 commits into
devfrom
copilot/fix-failing-github-actions-cd-job
Draft

Fix CD publish failure by excluding private workspaces from Lerna publish#15977
Copilot wants to merge 2 commits into
devfrom
copilot/fix-failing-github-actions-cd-job

Conversation

Copilot AI commented May 20, 2026

Copy link
Copy Markdown
Contributor

The cd GitHub Actions job failed in the stable publish stage with lerna ERR! E404 Not found while running lerna publish from-package. The failure was caused by private/unpublished workspace packages being considered during publish resolution.

  • Root cause

    • lerna publish from-package in cd.yml could include private workspace packages in publish checks, which can trigger npm E404 during release flows.
  • Change

    • Added --no-private to all Lerna publish steps in .github/workflows/cd.yml:
      • alpha (--dist-tag=alpha)
      • preview (--dist-tag=beta)
      • rc (--dist-tag=rc)
      • stable (default dist-tag)
  • Resulting behavior

    • Release publishing remains unchanged for public packages.
    • Private workspace packages are excluded consistently across all release channels, reducing publish-time E404 failures.
- name: publish stable npm packages to npmjs.org
  if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.preid == 'stable' }}
  run: |
    npx lerna publish from-package --yes --no-private

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job cd Fix CD publish failure by excluding private workspaces from Lerna publish May 20, 2026
Copilot AI requested a review from HuihuiWu-Microsoft May 20, 2026 09: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