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

Allow for arrays of commands #345

Open
Renari opened this issue May 13, 2023 · 0 comments · May be fixed by #360
Open

Allow for arrays of commands #345

Renari opened this issue May 13, 2023 · 0 comments · May be fixed by #360

Comments

@Renari
Copy link

Renari commented May 13, 2023

It would be nice if instead of:

{
  "@semantic-release/exec",
  {
    "prepareCmd":  "sed -i 's/<version>/${nextRelease.version}/' package.json && npm run build && tar -czf my.tar.gz * && zip my.zip *"
  }
}

You could specify an array of commands instead:

{
  "@semantic-release/exec",
  {
    "prepareCmd":  [
      "sed -i 's/<version>/${nextRelease.version}/' package.json",
      "npm run build",
      "tar -czf my.tar.gz *",
      "zip my.zip *"
    ]
  }
}
@Renari Renari linked a pull request Jun 24, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant