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
When using ${name} the release-it fails #641
Comments
That's a bug. Try |
you are awesome. I am trying to do it as |
It's always |
Thank you webpro for helping. So i tried to use this " $npm_package_name-$npm_package_version" earlier and this would not work too. SO i am trying with the workaround you mentioned. |
@webpro I have tried using ${npm.name} and it fails again with ERROR ReferenceError: npm is not defined |
After the above step fails and it also fails at git push ✖ Git push
|
I dug into this |
The available context variables have been extended in v13.5.3 |
I have the regular variables in my package.json
{
"name": "collections-common-mm",
"version": "1.0.17",
"release-it": {
"hooks": {},
"git": {
"changelog": "git log --pretty=format:"* %s (%h)" ${latestTag}...HEAD",
"requireCleanWorkingDir": false,
"requireUpstream": false,
"requireCommits": true,
"addUntrackedFiles": false,
"commit": true,
"commitMessage": "Release ${name}-${version}",
"commitArgs": "",
"tag": true,
"tagName": "${version}",
"tagAnnotation": "${name}-${version}",
"tagArgs": "",
"push": true,
"pushArgs": ["--follow-tags"],
"pushRepo": ""
}
Release it fails with the following error
ERROR ReferenceError: name is not defined
at eval (lodash.templateSources[12]:9:10)
at format (/var/lib/jenkins/workspace/s-common-mm-testmigration_master/node_modules/release-it/lib/util.js:26:32)
at Git.commit (/var/lib/jenkins/workspace/s-common-mm-testmigration_master/node_modules/release-it/lib/plugin/git/Git.js:136:40)
at task (/var/lib/jenkins/workspace/s-common-mm-testmigration_master/node_modules/release-it/lib/plugin/git/Git.js:60:57)
at Spinner.show (/var/lib/jenkins/workspace/s-common-mm-testmigration_master/node_modules/release-it/lib/spinner.js:14:23)
at Git.step (/var/lib/jenkins/workspace/s-common-mm-testmigration_master/node_modules/release-it/lib/plugin/Plugin.js:66:44)
at Git.release (/var/lib/jenkins/workspace/s-common-mm-testmigration_master/node_modules/release-it/lib/plugin/git/Git.js:60:16)
at runLifeCycleHook (/var/lib/jenkins/workspace/s-common-mm-testmigration_master/node_modules/release-it/lib/tasks.js:56:25)
at process._tickCallback (internal/process/next_tick.js:178:7)
ERROR name is not defined
The text was updated successfully, but these errors were encountered: