Skip to content

Commit

Permalink
Release 1.10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
awps committed Nov 13, 2023
1 parent 322a6a2 commit b63b7d8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit b63b7d8

Please sign in to comment.