git
git copied to clipboard
how to pass branches configuration to npx command
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 I think you could only pass value, but not configuration like: npx semantic-release --branches master
.