Open ddubrava opened 1 month ago
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
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.