silx-kit / h5web

React components for data visualization and exploration
https://h5web.panosc.eu/
MIT License
167 stars 17 forks source link

Sync package versions when bumping monorepo version to simplify CI release workflow #1546

Closed axelboc closed 5 months ago

axelboc commented 5 months ago

The main purpose of this PR (which stems from #1543, which I'll rebase on this one) is to be able to pack a package into a tarball without having to worry about its version (i.e. without ending up with a packed package that has version 0.0.1).

To do so, I add a version script (which runs as part of pnpm version) that copies the bumped version number of the monorepo into each package's package.json. This allows those package.json files to be committed with their real version numbers instead of the placeholder 0.0.1.

As a side benefit, the Publish packages CI workflow is now a lot shorter and less magical: it just builds the packages and publishes them!