-
Notifications
You must be signed in to change notification settings - Fork 26
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
Run several commands #110
Comments
It would be really great to support a list of executed commands in series cross platform. {
"plugins": [
["@semantic-release/exec", {
"publishCmd": [
"cmd 1",
"cmd 2",
"cmd ..."
]
}],
]
} |
I found that this works:
|
My current workaround (if using the file [
"@semantic-release/exec",
{
step: [
"cmd1",
"cmd2,
"cmd3",
].join(" && "),
},
] While not as elegant as a native support of command lists, it is still quite easy to handle this way. |
I am using yaml
or with newlines
The above exports during the step prepareCMD, the version into a file called version.txt and then on the step successCMD executes a list of commands on bash. I am using a linux operating system for the semantic versioning build pipeline. |
The best way to solve this is to use a bash script as mentioned in the README. |
There's a PR about this #360 |
I encounter the same issue. Can I use the plugin several times? Like this:
|
Is it possible to run several commands (i.e. array)?
Using
&&
with a long list is not so convenient.The text was updated successfully, but these errors were encountered: