ddubrava / angular-yandex-maps

🗺️ Yandex.Maps Angular components that implement the Yandex.Maps JavaScript API
https://ddubrava.github.io/angular8-yandex-maps/#/
MIT License
57 stars 7 forks source link

Nx Release #244

Open ddubrava opened 1 month ago

ddubrava commented 1 month ago

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 commented 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