[request] tweak publish lifecycle scripts
See original GitHub issueExpected Behavior
allow add update files during prepublishOnly ( build file, add commit, update package json … etc )
- publish
- update package.json version and githead,
changelog - prepublishOnly 3.5 reload git commit changes, package json changes, update githead, changelog
- … others
4.5 allow run root
postpublish
after git push
Current Behavior
- publish
- update package.json version and githead, changelog
- prepublishOnly
- … others
Possible Solution
Steps to Reproduce (for bugs)
lerna.json
<!-- Please paste your `lerna.json` here -->
lerna-debug.log
<!-- If you have a `lerna-debug.log` available, please paste it here -->
<!-- Otherwise, feel free to delete this <details> block -->
Context
Your Environment
Executable | Version |
---|---|
lerna --version |
VERSION |
npm --version |
VERSION |
yarn --version |
VERSION |
node --version |
VERSION |
OS | Version |
---|---|
NAME | VERSION |
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
Lifecycle Scripts | Yarn - Package Manager
An overview of Yarn's supported lifecycle scripts.
Read more >Scripts - Composer
post -root-package-install: occurs after the root package has been installed during the create-project command (but before its dependencies are installed). post- ...
Read more >Setup & teardown scripts - Checkly
A setup script executes before any requests are made. You have access to a set of built-in variables to tweak the HTTP request...
Read more >Three Things You Didn't Know You Could Do with npm Scripts
In this blog post we'll cover the basics but also three lesser known ... You can read more about those lifecycle scripts in...
Read more >Only show lifecycle script banner if stdout is a TTY · Issue #8091 ...
If stdout is not a TTY, then there's a good chance that the user is piping the output somewhere, perhaps as part of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to override the version changes by lerna in the
version
hook and you can add stuff to the git commit there tooHi Folks 👋
You will have seen in our message above that we at Nrwl are working really hard to bring the lerna repo up to date with what matters most to its community in June 2022.
As previously stated in that message, because we have not heard from the original author of this issue within the last 14 days, we are now automatically closing it.
If any users, including the original author, are still impacted by this issue then we still want to hear from you!
All we ask is that you first update to the latest lerna (
5.1.4
at the time of writing) to make sure it is still reproducible, and then fill out one of our new issue templates, providing all the requested details which apply to your situation:https://github.com/lerna/lerna/issues/new/choose
Many thanks again! 🙏
P.S. Over and above getting to grips with the repo, we have also been hard at work launching a new website, resolving all vulnerabilities, merging exciting new features and reigniting community PR contributions! 🚀
You can read our recent blog post to learn more about what we’ve been up to: https://blog.nrwl.io/lerna-5-1-new-website-new-guides-new-lerna-example-repo-distributed-caching-support-and-speed-64d66410bec7