semantic-release / npm

:ship: semantic-release plugin to publish a npm package
MIT License
244 stars 114 forks source link

Set --no-workspaces with npm version #639

Closed wilbert-abreu closed 1 year ago

wilbert-abreu commented 1 year ago

I need to run "--no-workspaces" or something equivalent to fix this issue https://github.com/npm/cli/issues/4605, anyone know how would I can pass that to the npm version command? https://github.com/semantic-release/npm/blob/master/lib/prepare.js#LL16C42-L16C47

wilbert-abreu commented 1 year ago

Seems related to https://github.com/semantic-release/npm/pull/534 https://github.com/semantic-release/npm/pull/529

travi commented 1 year ago

as mentioned in several other threads, such as https://github.com/semantic-release/npm/pull/634#issuecomment-1591968005, this can be accomplished through standard npm configuration approaches. please attempt to set this flag in your .npmrc or publishConfig in package.json