Friday, 13 August 2021

Lerna publish : determine published generated version number

When running lerna publish within our pipeline like so :

lerna publish --yes --force-publish=* --canary --preid 2760 --registry

Is there a way of getting the actual published version of the artifact.

One solution I can think of is trying to parse the response from that publish call, which outputs this :

lerna notice cli v3.13.1
lerna info ci enabled
lerna info canary enabled
lerna WARN force-publish all packages
lerna info Assuming all packages changed

Found 1 package to publish:
 - @xxx/xxx-xxx => 3.0.23-2760.5+175c890

Anyone have a more elegant solution?



from Lerna publish : determine published generated version number

No comments:

Post a Comment