GithubHelp home page GithubHelp logo

Comments (5)

pmowrer avatar pmowrer commented on May 28, 2024

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.

 avatar commented on May 28, 2024

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.

pmowrer avatar pmowrer commented on May 28, 2024

I mean the ``.releaserc/release.config.jsfile used to configure semantic-release. Can I just place one in my root directory (with theextends `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.

 avatar commented on May 28, 2024

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.

pmowrer avatar pmowrer commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.