-
Notifications
You must be signed in to change notification settings - Fork 31
chore: migrate from Lerna to NX Release with Version Plans #3254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3254 +/- ##
==========================================
+ Coverage 89.65% 89.78% +0.12%
==========================================
Files 353 361 +8
Lines 5065 5147 +82
Branches 1606 1654 +48
==========================================
+ Hits 4541 4621 +80
- Misses 516 518 +2
Partials 8 8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0bf6120 to
a521830
Compare
|
View your CI Pipeline Execution ↗ for commit 535b6d8 ☁️ Nx Cloud last updated this comment at |
Co-authored-by: jakemhiller <[email protected]>
Co-authored-by: jakemhiller <[email protected]>
Co-authored-by: jakemhiller <[email protected]>
Co-authored-by: jakemhiller <[email protected]>
Co-authored-by: jakemhiller <[email protected]>
Co-authored-by: jakemhiller <[email protected]>
Co-authored-by: jakemhiller <[email protected]>
a521830 to
85ce914
Compare
|
@copilot there are problems with the CLI usage of nx release. |
Co-authored-by: jakemhiller <[email protected]>
Fixed in commit 49904d3. Changes made: Production workflow:
Alpha workflow:
Both workflows now use the correct NX Release CLI syntax per the official documentation. |
|
🚀 Styleguide deploy preview ready! Preview URL: https://697a70c5b17c38beab20491d--gamut-preview.netlify.app |
Overview
Migrated package publishing from Lerna to NX Release with file-based versioning (Version Plans). Contributors now create version plan files via
yarn nx release planinstead of relying on conventional commit messages for version bumps.Configuration:
releaseconfig innx.json:versionPlans: true,projectsRelationship: "independent".nx/version-plans/for version plan files.gitignoreto track version plans, ignore cache/workspace-dataWorkflows:
publish-production.yml:lerna publish→nx release -ypublish-alpha.yml: Usesnx release --skip-publish prerelease --preid=alpha.{SHA}followed bynx release publish --tag=alpha.{SHA}for alpha builds.nx/version-plansdirectory during alpha releases (version plans cannot be used with specifier arguments)Dependency Cleanup:
lerna,conventional-changelog-cli,conventional-changelog-conventionalcommitslerna.jsonyarn.lock(−3107 lines)Version Plan Format:
CLI Usage:
All NX Release commands use correct flags per official documentation:
-y(short form of--yes) on mainnx releasecommand--skip-publish(not--skipPublish) on mainnx releasecommandnx release version,nx release publish) don't accept--yesor-yflagsExact versions for internal dependencies maintained (NX default). Alpha publishing unchanged from contributor perspective.
PR Checklist
Testing Instructions
Verify NX Release:
yarn nx release --dry-run # Should complete without errorsCreate version plan:
yarn nx release plan # Interactive prompts to create version planTest version plan application:
Test alpha workflow locally:
# Simulate alpha versioning mv .nx/version-plans .nx/version-plans.backup yarn nx release --skip-publish prerelease --preid=alpha.test123 --dry-run mv .nx/version-plans.backup .nx/version-plansNo action needed - workflows apply version plans on merge to main. Alpha builds continue working automatically.
PR Links and Envs
N/A - Infrastructure change, no end-user facing changes
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.