Skip to content
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

Nx Release #244

Open
ddubrava opened this issue Jul 14, 2024 · 1 comment
Open

Nx Release #244

ddubrava opened this issue Jul 14, 2024 · 1 comment
Labels
tech Technical issue [internal]

Comments

@ddubrava
Copy link
Owner

nx release doesn't build libraries. And we can't build them before running a script because versions must be bumped first. So the current workaround is to run everything manually. The possible solution is to use imperative API and implement our own script.

@ddubrava ddubrava added the tech Technical issue [internal] label Jul 14, 2024
@ddubrava
Copy link
Owner Author

ddubrava commented Jul 21, 2024

It should be easily done with the API - https://nx.dev/features/manage-releases#using-the-programmatic-api-for-nx-release

Something like this

nx release version

// it should be done at once, since this command commits and pushes
nx release changelog X.X.X -p angular-yandex-maps-v2
nx release changelog X.X.X -p angular-yandex-maps-v3

nx run-many -t build -p angular-yandex-maps-v2 angular-yandex-maps-v3

cd dist/libs/angular-yandex-maps-v2
npm publish

cd dist/libs/angular-yandex-maps-v3
npm publish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech Technical issue [internal]
Projects
None yet
Development

No branches or pull requests

1 participant