Skip to content

fix: install lerna 9 in v3 publish workflow - #4670

Merged
czy88840616 merged 1 commit into
3.xfrom
codex/install-lerna9-v3-publish
Sep 27, 2026
Merged

czy88840616 merged 1 commit into
3.xfrom
codex/install-lerna9-v3-publish

Conversation

@czy88840616

Copy link
Copy Markdown
Member

Summary

  • install Lerna 9.0.7 directly into the v3 publishing environment
  • remove the npx --package wrapper that was still delegating to the local Lerna 7
  • keep the repository dependency on Lerna 7 for legacy Node.js compatibility

Context

The retry still ran Lerna 7.4.2 because the Lerna 9 CLI discovered and delegated to the repository-local version:
https://github.com/midwayjs/midway/actions/runs/36332507743

Installing the pinned version after the normal dependency install makes the publish script load Lerna 9.0.7 and libnpmpublish@11.1.2, which supports npm trusted publishing.

Verification

  • verified installed Lerna version is 9.0.7
  • verified installed libnpmpublish version is 11.1.2
  • verified Lerna 9 can list the v3 workspace
  • bash -n scripts/publish.sh
  • git diff --check
  • npx prettier --check .github/workflows/publish.yml

Retry

After merging, rerun with release_type=release and version_bump=existing.

@czy88840616
czy88840616 merged commit dcaff5f into 3.x Sep 27, 2026
3 of 6 checks passed
@czy88840616
czy88840616 deleted the codex/install-lerna9-v3-publish branch September 27, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant