diff --git a/index.js b/index.js index 8cfc69f..432a149 100755 --- a/index.js +++ b/index.js @@ -337,14 +337,18 @@ Options: if (ghInstalled) { const autoRelease = args['auto-release'] || (pkgContent && pkgContent.tagy && pkgContent.tagy['auto-release']); - const ghRelease = await prompts({ - type: 'confirm', - name: 'value', - message: `Do you want to create a release on GitHub?`, - initial: false - }) - - const releaseIt = autoRelease || ghRelease.value; + let releaseIt = autoRelease; + + if (!autoRelease) { + const ghRelease = await prompts({ + type: 'confirm', + name: 'value', + message: `Do you want to create a release on GitHub?`, + initial: false + }); + + releaseIt = ghRelease.value; + } if (releaseIt) { await shell.exec(`gh release create ${tagPrefix}${vv} --title "${tagPrefix}${vv}" --notes "Release ${tagPrefix}${vv}"`) diff --git a/package.json b/package.json index 9862038..3cd1760 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tagy", - "version": "1.10.4", + "version": "1.10.5", "description": "Create a new git tag by following the 'Semantic Versioning' and push it on remote.", "main": "index.js", "scripts": {