Replies: 6 comments 7 replies
-
Hi @poloka , thank you for your question. I would only expect the git sha to be added if using the |
Beta Was this translation helpful? Give feedback.
-
Hey @fahslaj , thanks for the quick response. Okay, need to add a bit more context. I have a CI build that is pushing snapshots to development repository so I've been using --canary; otherwise, my CI is stuck waiting for the
My {
"version": "independent",
"useWorkspaces": true
} Pretty basic at this point. :-) |
Beta Was this translation helpful? Give feedback.
-
Cool, that helps. Now I'm in a situation where I want to start with say 3.0.0. By adding the |
Beta Was this translation helpful? Give feedback.
-
Also, if I was running this prepublish from my CI, how can subsequent builds know that the version goes from Previously, what I was planning on doing was to pull the results from
And then identify the latest version and increment the version from the |
Beta Was this translation helpful? Give feedback.
-
Thought of another question, if I was to write some custom logic for doing stuff on a prerelease, would there be a way to tell this execution path version a standard release? I want to run something in the |
Beta Was this translation helpful? Give feedback.
-
Where I am stuck is that I need to tell lerna the version has been updated. I tried in the
Is there anything that can be done? I'm stuck and looks like lerna is not very flexible in this aspect. |
Beta Was this translation helpful? Give feedback.
-
Can I implement custom versioning logic during 'lerna version' and 'lerna publish' stages?
I have a use case where I want to publish a prerelease with a version that looks like the following:
3.0.0-<preid>.0
The current lerna publish seems to add a
sha
reference at the end which I do not want. What I do want is to increment the last identifier so I can get3.0.0-<preid>.0
3.0.0-<preid>.1
3.0.0-<preid>.2
I tried tying into the post processing lifecycle event
version
in my package.json to execute a script to do my own custom modifications but upon saving my updates it is only reflected in my package.json. Any project that has a reference to this project in my monorepo fails to find the updated version. The standardlerna publish
updated the version to3.0.0-foobar.0.1812
. My custom script knocks off the1812
and updates the version to be pushed to3.0.0-foobar.1
because I already have a3.0.0-foobar.0
pushed to my repository. Now because I did this, during this build I have another project in my monorepo that was to be updated with the new version but I get an error sayingIt still has the original version stored in its processing that it want to update projects with.
So want to know from the community what has been done and what is possible. Is there an argument to not include the sha? Can I change the version being utilize for this artifact stored within the current processing of the lerna command? Can I replace the version logic utilize during the
lerna version
execution or do I only have access to pre and post actions? Just want to see what my options are.Beta Was this translation helpful? Give feedback.
All reactions