Skip to content

tagFormat customizable #174

@tiagoporto

Description

@tiagoporto

Hi, very useful package. Thanks.

I'm using semantic release with pnpm and jsr.

I would like to customize the tag to <package-name>@<version>, I achieved the result doing:

// .releaserc.mjs
export default {
  tagFormat: `${process.env.npm_package_name}@\${version}`,
  // ...
}

The approach works when using only npm, pnpm or jsr, but when I use more plugins together, I'm getting errors like Error: Failed to replace version in package.json.

I've tried semantic-release --tag-format=$npm_package_name@\\${version} without success: anolilab/semantic-release#152

I've cloned the repo and replaced the hard-coded value, avoiding tagFormat, and everything works fine now.

It would be amazing if we had a way to customize the tagFormat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions