-
Notifications
You must be signed in to change notification settings - Fork 31
chore: migrate to NX Release with programmatic API for alpha builds #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
|
0bf6120 to
a521830
Compare
|
View your CI Pipeline Execution ↗ for commit 3606fad ☁️ Nx Cloud last updated this comment at |
a521830 to
85ce914
Compare
|
@copilot there are problems with the CLI usage of nx release. |
Fixed in commit 49904d3. Changes made: Production workflow:
Alpha workflow:
Both workflows now use the correct NX Release CLI syntax per the official documentation. |
Co-authored-by: jakemhiller <238023+jakemhiller@users.noreply.github.com>
Co-authored-by: jakemhiller <238023+jakemhiller@users.noreply.github.com>
Co-authored-by: jakemhiller <238023+jakemhiller@users.noreply.github.com>
Co-authored-by: jakemhiller <238023+jakemhiller@users.noreply.github.com>
Co-authored-by: jakemhiller <238023+jakemhiller@users.noreply.github.com>
Co-authored-by: jakemhiller <238023+jakemhiller@users.noreply.github.com>
Co-authored-by: jakemhiller <238023+jakemhiller@users.noreply.github.com>
Co-authored-by: jakemhiller <238023+jakemhiller@users.noreply.github.com>
Co-authored-by: jakemhiller <238023+jakemhiller@users.noreply.github.com>
ccaa986 to
3606fad
Compare
|
🚀 Styleguide deploy preview ready! Preview URL: https://697cc7210bf8c11442d548fe--gamut-preview.netlify.app |
Overview
Migrated from Lerna to NX Release. Production releases use Version Plans via nx.json configuration. Alpha releases use NX Release programmatic API to bypass version plans and apply prerelease versioning without git operations.
Changes:
script/release-alpha.mjs: New script usingreleaseVersion()andreleasePublish()fromnx/releaseAPIprereleasespecifier with custom preid (e.g.,alpha.abc123)gitCommit: false,gitTag: false,stageChanges: false)publish-alpha.yml: Replaced bash workaround (moving.nx/version-plans) with single command:node script/release-alpha.mjs --preid="alpha.${SHORT_SHA}"publish-production.yml: Usesnx release -y(removed--dry-runflag)nx.json: Configured for production with version plans, git operations, and GitHub releasesWhy programmatic API for alpha:
Version plans cannot be used with specifier arguments. The programmatic API allows direct control over versioning parameters, cleanly separating alpha (prerelease with no git ops) from production (version plans with git ops) workflows.
PR Checklist
Testing Instructions
Test alpha script locally:
Test production release (dry run):
In CI:
alpha.{SHORT_SHA}PR Links and Envs
N/A - Infrastructure change, no application changes
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://storage.googleapis.com/prod-north-america/62ebf733004c864a372a0e81/8a2df9ef-4f67-44d5-9858-c9e0e3dcef19-logs/usr/local/bin/node node script/release-alpha.mjs --preid=alpha.test123 --dryRun(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 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.