Comments (5)
Should I add semantic-release and semantic-release-monorepo to the devDependencies beforehand (as hinted by the --no-install flag) or are these dependencies installed with npx?
I believe this is addressed in the immediately following line in the README. Is this not clear? Could the language be improved?
Thanks to how npx's package resolution works, if the repository root is in $PATH (typically true on CI), semantic-release and semantic-release-monorepo can be installed once in the repo root instead of in each individual package, likely saving both time and disk space.
Also, can I use a config file in my monorepo root directory instead of passing all configuration options as cli arguments like above?
By "config file", do you mean a lerna
config file? Which CLI arguments were you hoping to eliminate?
from semantic-release-monorepo.
First of all, thank you for replying! Maintaining open source projects for essentially nothing takes time and money that could go elsewhere, so I really appreciate your response.
By "config file", do you mean a
lerna
config file? Which CLI arguments were you hoping to eliminate?
I mean the ``.releaserc/
release.config.js` file used to configure semantic-release. Can I just place one in my root directory (with the `extends `option etc in it) and then call semantic-release like so:
lerna exec --concurrency 1 -- npx --no-install semantic-release
Or do I have to pass all the options as command line arguments like in your example? (with the -e
flag etc)
Thanks in advance!
from semantic-release-monorepo.
I mean the ``.releaserc/release.config.js
file used to configure semantic-release. Can I just place one in my root directory (with the
extends `option etc in it)
I don't think so, because semantic-release
looks for the config file relative to the current working directory (ie each package's root dir).
However, I think you should be able to put all your configuration in a release config file and then pass it via the -e
flag.
from semantic-release-monorepo.
Thanks again, I'll try that.
Unrelated to your plugin, I'd be very grateful if you could help me out a little with this question: Would you recommend using Git(hub) for a monorepo (in a small team) or should I use something like Perforce Helix Core or SVN (due to their higher efficiency with one large repo) instead? 🙏
I'll close this issue for now.
from semantic-release-monorepo.
Sorry, don't think I can help you with that. I've never used Perforce, and SVN I haven't touched in 10+ years.
from semantic-release-monorepo.
Related Issues (20)
- [bug] semantic-release-monorepo ignores pkgRoot HOT 10
- get the releasing workspace HOT 1
- Non-javascript project generates new version for every package HOT 2
- semantic-release-monorepo is updateing the version of both apps when only one app was updated. HOT 2
- Node 16/18 support HOT 1
- [Question] different .releaserc files HOT 1
- [Bug]: analyzeCommits doesn't run monorepo login on newer commit HOT 4
- chore: remove $ from command HOT 1
- Problem with resolving `pnpm`'s `workspace:*` references HOT 3
- Commit analyzation doesn't pick up any commits to release HOT 3
- node 18 support HOT 4
- ERR_REQUIRED_ESM error with semantic-release/gitlab HOT 11
- ERR_REQUIRED_ESM error with multiple plugin packages HOT 8
- Failure when multiple packages are published in one commit due to Git conflict HOT 1
- Github doesn't correctly identify and push the tags for release to my repository HOT 1
- Configure for multiple package roots? HOT 7
- ESM Version does not work HOT 4
- Error: __dirname is not defined HOT 1
- --no-git-tag-version --allow-same-version' after upgrading to version 8.0.2
- Branch name becomes undefined once a release happen in a previous package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semantic-release-monorepo.