git icon indicating copy to clipboard operation
git copied to clipboard

how to pass branches configuration to npx command

Open Bobby484 opened this issue 4 years ago • 1 comments

I have been trying the below command in jenkins pipeline to set master as main release and all feature branches as pre-release with dev. (example 1.0.0-dev.1) npx semantic-release --branches [master, {name: $branch_name , channel: dev, prerelease: dev}] --debug

unfortunately this is not formatting well when I see it in debug output hence failing the semver release.

please suggest is there any proper way to pass branches configuration from npx command.

Bobby484 avatar Jan 19 '21 15:01 Bobby484

@Bobby484 I think you could only pass value, but not configuration like: npx semantic-release --branches master.

juancarlosjr97 avatar Feb 07 '21 09:02 juancarlosjr97