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

using shell to evaluate env or expressions #528

Open
its-dibo opened this issue Jan 4, 2025 · 1 comment
Open

using shell to evaluate env or expressions #528

its-dibo opened this issue Jan 4, 2025 · 1 comment

Comments

@its-dibo
Copy link

its-dibo commented Jan 4, 2025

1- if the package support shell, we can do something like that

 [
     
        '@semantic-release/git',
        {
          message:
            "build: release $(jq -r '.name' package.json)-${nextRelease.version} [skip ci]",
        },
      ]

2- we can provide ${ package } placeholder, so we can do something like "build: release${ package.name }-..."

3- apart from supporting shell, we need to change the default message:

  • remove "${ nextRelease.notes }", because it often violates commitLint rules
  • add package.name by default (useful for monorepos)
@its-dibo
Copy link
Author

its-dibo commented Jan 4, 2025

alternatively, if release config is js or ts, use javascript direct to read package.json props

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

No branches or pull requests

1 participant