Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIP] running with YARN from root #85

Open
snebjorn opened this issue Mar 26, 2020 · 1 comment
Open

[TIP] running with YARN from root #85

snebjorn opened this issue Mar 26, 2020 · 1 comment

Comments

@snebjorn
Copy link

Figured someone could use this info.

You can run semantic-release from the repo root if you do the following.

  1. Put a .yarnrc file inside the library folder that point to the root node_modules. So if I have libs/mylib then
// .yarnrc
--run.modules-folder ../../node_modules
  1. In the root package.json script use --cwd libs/mylib
// root package.json, not the library
{
  "scripts": {
    "mylib:semantic-release": "yarn --cwd libs/mylib run semantic-release -e semantic-release-monorepo"
  }
}
  1. ???
  2. Profit
@pmowrer
Copy link
Owner

pmowrer commented Apr 1, 2020

Thanks for sharing! I've used lerna to do this but nice to know of an alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants