Skip to content

Allow for arrays of commands #345

@Renari

Description

@Renari

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 *"
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions