From b3ccdec230a0985bdb3361e6f2fa72443ca842bb Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 11:53:11 +0300 Subject: [PATCH 01/18] Attempt to fix prerelease --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 263ece8..ff2d208 100644 --- a/index.js +++ b/index.js @@ -68,7 +68,7 @@ Toolkit.run(async (tools) => { // case: if default=prerelease, but rc-wording is also set // then unset it and do not run, when no rc words found in message - if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { + if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word))) && process.env.INPUT_DEFAULT != 'prerelease') { version = null; } From b0c81302c59f4ea87ac92a2fc77dae578fbeb101 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 12:23:49 +0300 Subject: [PATCH 02/18] Increase package version --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e498639..193bf61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gh-action-bump-version", - "version": "8.2.14", + "version": "8.2.15", "repository": { "type": "git", "url": "git+https://github.com/phips28/gh-action-bump-version.git" @@ -27,4 +27,4 @@ "standard": "^14.3.3", "prettier": "^2.3.0" } -} +} \ No newline at end of file From fdfb7839db491ae1e664451c5c69eaa7d1bb0b0c Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 12:35:07 +0300 Subject: [PATCH 03/18] Increase package version --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index ff2d208..7d2b509 100644 --- a/index.js +++ b/index.js @@ -68,11 +68,17 @@ Toolkit.run(async (tools) => { // case: if default=prerelease, but rc-wording is also set // then unset it and do not run, when no rc words found in message + tools.log('Before Login'); + tools.log(version); + tools.log('PreID: ' + preid); + tools.log(process.env.INPUT_DEFAULT); if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word))) && process.env.INPUT_DEFAULT != 'prerelease') { + tools.log('Version is set to null'); version = null; } if (version === 'prerelease' && preid) { + tools.log('Version is prerelease and it contains a preid'); version = `${version} --preid=${preid}`; } From 9550a43c09b1b1830a295a6334b963d3bdb7c1c3 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 12:43:08 +0300 Subject: [PATCH 04/18] Attempt to fix prerelease --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 7d2b509..3340074 100644 --- a/index.js +++ b/index.js @@ -64,6 +64,8 @@ Toolkit.run(async (tools) => { if (!messages.some((message) => patchWords.some((word) => message.includes(word)))) { version = null; } + } else if (process.env.INPUT_DEFAULT === 'prerelease'){ + version = 'prerelease'; } // case: if default=prerelease, but rc-wording is also set From d2aab699b554b759b10b17d96dcf87d34c49f1c9 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 12:50:22 +0300 Subject: [PATCH 05/18] Attempt to fix prerelease --- index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 3340074..c74138c 100644 --- a/index.js +++ b/index.js @@ -44,8 +44,10 @@ Toolkit.run(async (tools) => { ) ) { version = 'major'; + tools.log('Version is set to major'); } else if (messages.some((message) => minorWords.some((word) => message.includes(word)))) { version = 'minor'; + tools.log('Version is set to minor'); } else if ( messages.some((message) => preReleaseWords.some((word) => { @@ -60,19 +62,22 @@ Toolkit.run(async (tools) => { ) { preid = foundWord.split('-')[1]; version = 'prerelease'; + tools.log('Version is set to prerelease2'); } else if (Array.isArray(patchWords) && patchWords.length) { if (!messages.some((message) => patchWords.some((word) => message.includes(word)))) { version = null; + tools.log('Version is set to null 2'); } } else if (process.env.INPUT_DEFAULT === 'prerelease'){ + tools.log('Version is set to prerelease'); version = 'prerelease'; } // case: if default=prerelease, but rc-wording is also set // then unset it and do not run, when no rc words found in message tools.log('Before Login'); - tools.log(version); - tools.log('PreID: ' + preid); + tools.log(version); // null + tools.log('PreID: ' + preid); //prc tools.log(process.env.INPUT_DEFAULT); if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word))) && process.env.INPUT_DEFAULT != 'prerelease') { tools.log('Version is set to null'); From 22d657a2ad4221b3f6874a06ef71c990aaa7ee41 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 12:58:41 +0300 Subject: [PATCH 06/18] Attempt to fix prerelease --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index c74138c..c60a0ba 100644 --- a/index.js +++ b/index.js @@ -31,9 +31,7 @@ Toolkit.run(async (tools) => { const majorWords = process.env['INPUT_MAJOR-WORDING'].split(','); const minorWords = process.env['INPUT_MINOR-WORDING'].split(','); const preReleaseWords = process.env['INPUT_RC-WORDING'].split(','); - - // if patch words aren't specified, any commit message qualifies as a patch - const patchWords = process.env['INPUT_PATCH-WORDING'] ? process.env['INPUT_PATCH-WORDING'].split(',') : null; + const patchWords = process.env['INPUT_PATCH-WORDING'].split(','); let version = process.env.INPUT_DEFAULT; let foundWord = null; From d51ed3a368ab7a94ffdc7862837f63012d07f104 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 13:08:46 +0300 Subject: [PATCH 07/18] Attempt to fix prerelease --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c60a0ba..af2276b 100644 --- a/index.js +++ b/index.js @@ -36,6 +36,8 @@ Toolkit.run(async (tools) => { let version = process.env.INPUT_DEFAULT; let foundWord = null; let preid = process.env.INPUT_PREID; + + tools.log('Version is set to Begining: ' + version); if ( messages.some( (message) => /^([a-zA-Z]+)(\(.+\))?(\!)\:/.test(message) || majorWords.some((word) => message.includes(word)), @@ -62,7 +64,9 @@ Toolkit.run(async (tools) => { version = 'prerelease'; tools.log('Version is set to prerelease2'); } else if (Array.isArray(patchWords) && patchWords.length) { + tools.log('PatchWords is set : ' + patchWords); if (!messages.some((message) => patchWords.some((word) => message.includes(word)))) { + tools.log('Messages found on the patchwords : ' + messages); version = null; tools.log('Version is set to null 2'); } @@ -82,7 +86,7 @@ Toolkit.run(async (tools) => { version = null; } - if (version === 'prerelease' && preid) { + if (version === 'prerelease' || process.env.INPUT_DEFAULT === 'prerelease' && preid) { tools.log('Version is prerelease and it contains a preid'); version = `${version} --preid=${preid}`; } From 1aa462388237a1370f7bdfca25cced698abeaa50 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 13:27:08 +0300 Subject: [PATCH 08/18] Attempt to fix prerelease --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index af2276b..7a75649 100644 --- a/index.js +++ b/index.js @@ -88,6 +88,7 @@ Toolkit.run(async (tools) => { if (version === 'prerelease' || process.env.INPUT_DEFAULT === 'prerelease' && preid) { tools.log('Version is prerelease and it contains a preid'); + version = 'prerelease'; version = `${version} --preid=${preid}`; } From 1b7321ba3314ca4ea8d8f6d32817acf813351a15 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 14:59:19 +0300 Subject: [PATCH 09/18] Attempt to fix prerelease --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7a75649..198a83e 100644 --- a/index.js +++ b/index.js @@ -81,7 +81,7 @@ Toolkit.run(async (tools) => { tools.log(version); // null tools.log('PreID: ' + preid); //prc tools.log(process.env.INPUT_DEFAULT); - if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word))) && process.env.INPUT_DEFAULT != 'prerelease') { + if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { tools.log('Version is set to null'); version = null; } From f31cb5f0edf278c35d1997922cfb0dc07114268b Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 15:16:01 +0300 Subject: [PATCH 10/18] Attempt to fix prerelease --- index.js | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/index.js b/index.js index 198a83e..bfd3695 100644 --- a/index.js +++ b/index.js @@ -30,8 +30,8 @@ Toolkit.run(async (tools) => { const majorWords = process.env['INPUT_MAJOR-WORDING'].split(','); const minorWords = process.env['INPUT_MINOR-WORDING'].split(','); - const preReleaseWords = process.env['INPUT_RC-WORDING'].split(','); const patchWords = process.env['INPUT_PATCH-WORDING'].split(','); + const preReleaseWords = process.env['INPUT_RC-WORDING'].split(','); let version = process.env.INPUT_DEFAULT; let foundWord = null; @@ -48,6 +48,9 @@ Toolkit.run(async (tools) => { } else if (messages.some((message) => minorWords.some((word) => message.includes(word)))) { version = 'minor'; tools.log('Version is set to minor'); + } else if (messages.some((message) => patchWords.some((word) => message.includes(word)))) { + version = 'patch'; + tools.log('Version is set to patch'); } else if ( messages.some((message) => preReleaseWords.some((word) => { @@ -63,16 +66,6 @@ Toolkit.run(async (tools) => { preid = foundWord.split('-')[1]; version = 'prerelease'; tools.log('Version is set to prerelease2'); - } else if (Array.isArray(patchWords) && patchWords.length) { - tools.log('PatchWords is set : ' + patchWords); - if (!messages.some((message) => patchWords.some((word) => message.includes(word)))) { - tools.log('Messages found on the patchwords : ' + messages); - version = null; - tools.log('Version is set to null 2'); - } - } else if (process.env.INPUT_DEFAULT === 'prerelease'){ - tools.log('Version is set to prerelease'); - version = 'prerelease'; } // case: if default=prerelease, but rc-wording is also set @@ -81,12 +74,12 @@ Toolkit.run(async (tools) => { tools.log(version); // null tools.log('PreID: ' + preid); //prc tools.log(process.env.INPUT_DEFAULT); - if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { - tools.log('Version is set to null'); - version = null; - } + // if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { + // tools.log('Version is set to null'); + // version = null; + // } - if (version === 'prerelease' || process.env.INPUT_DEFAULT === 'prerelease' && preid) { + if (version === 'prerelease' || (process.env.INPUT_DEFAULT === 'prerelease' && preid)) { tools.log('Version is prerelease and it contains a preid'); version = 'prerelease'; version = `${version} --preid=${preid}`; From cb6143c85d09cb3cd042f59b5b82606e701c2b61 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 15:53:00 +0300 Subject: [PATCH 11/18] Attempt to fix prerelease --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index bfd3695..e101a60 100644 --- a/index.js +++ b/index.js @@ -79,7 +79,7 @@ Toolkit.run(async (tools) => { // version = null; // } - if (version === 'prerelease' || (process.env.INPUT_DEFAULT === 'prerelease' && preid)) { + if (version === 'prerelease' && preid)) { tools.log('Version is prerelease and it contains a preid'); version = 'prerelease'; version = `${version} --preid=${preid}`; From 65f541cae360a6c65c1a3c60b04af27b0ce20f07 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 16:01:06 +0300 Subject: [PATCH 12/18] Fix typos --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e101a60..79e5115 100644 --- a/index.js +++ b/index.js @@ -79,7 +79,7 @@ Toolkit.run(async (tools) => { // version = null; // } - if (version === 'prerelease' && preid)) { + if (version === 'prerelease' && preid) { tools.log('Version is prerelease and it contains a preid'); version = 'prerelease'; version = `${version} --preid=${preid}`; From 44d90648f6d63afe2882bc054c69f3aae748ce65 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 18:05:23 +0300 Subject: [PATCH 13/18] Removing logs for debugging --- index.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/index.js b/index.js index 79e5115..a6f2a99 100644 --- a/index.js +++ b/index.js @@ -37,20 +37,16 @@ Toolkit.run(async (tools) => { let foundWord = null; let preid = process.env.INPUT_PREID; - tools.log('Version is set to Begining: ' + version); if ( messages.some( (message) => /^([a-zA-Z]+)(\(.+\))?(\!)\:/.test(message) || majorWords.some((word) => message.includes(word)), ) ) { version = 'major'; - tools.log('Version is set to major'); } else if (messages.some((message) => minorWords.some((word) => message.includes(word)))) { version = 'minor'; - tools.log('Version is set to minor'); } else if (messages.some((message) => patchWords.some((word) => message.includes(word)))) { version = 'patch'; - tools.log('Version is set to patch'); } else if ( messages.some((message) => preReleaseWords.some((word) => { @@ -65,22 +61,9 @@ Toolkit.run(async (tools) => { ) { preid = foundWord.split('-')[1]; version = 'prerelease'; - tools.log('Version is set to prerelease2'); } - // case: if default=prerelease, but rc-wording is also set - // then unset it and do not run, when no rc words found in message - tools.log('Before Login'); - tools.log(version); // null - tools.log('PreID: ' + preid); //prc - tools.log(process.env.INPUT_DEFAULT); - // if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { - // tools.log('Version is set to null'); - // version = null; - // } - if (version === 'prerelease' && preid) { - tools.log('Version is prerelease and it contains a preid'); version = 'prerelease'; version = `${version} --preid=${preid}`; } From 03c10b2a9d965ec8a32ab4e153810c1cdfeb102e Mon Sep 17 00:00:00 2001 From: cmario92 Date: Thu, 1 Jul 2021 21:17:11 +0300 Subject: [PATCH 14/18] comment the logic of the action --- index.js | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index a6f2a99..faacb74 100644 --- a/index.js +++ b/index.js @@ -28,26 +28,36 @@ Toolkit.run(async (tools) => { return; } + // input wordings for MAJOR, MINOR, PATCH, PRE-RELEASE const majorWords = process.env['INPUT_MAJOR-WORDING'].split(','); const minorWords = process.env['INPUT_MINOR-WORDING'].split(','); const patchWords = process.env['INPUT_PATCH-WORDING'].split(','); const preReleaseWords = process.env['INPUT_RC-WORDING'].split(','); + // get default version bump let version = process.env.INPUT_DEFAULT; let foundWord = null; + // get the pre-release prefix specified in action let preid = process.env.INPUT_PREID; + // case: if wording for MAJOR found if ( messages.some( (message) => /^([a-zA-Z]+)(\(.+\))?(\!)\:/.test(message) || majorWords.some((word) => message.includes(word)), ) ) { version = 'major'; - } else if (messages.some((message) => minorWords.some((word) => message.includes(word)))) { + } + // case: if wording for MINOR found + else if (messages.some((message) => minorWords.some((word) => message.includes(word)))) { version = 'minor'; - } else if (messages.some((message) => patchWords.some((word) => message.includes(word)))) { + } + // case: if wording for PATCH found + else if (messages.some((message) => patchWords.some((word) => message.includes(word)))) { version = 'patch'; - } else if ( + } + // case: if wording for PRE-RELEASE found + else if ( messages.some((message) => preReleaseWords.some((word) => { if (message.includes(word)) { @@ -63,16 +73,25 @@ Toolkit.run(async (tools) => { version = 'prerelease'; } + // case: if default=prerelease, but rc-wording is also set + // then unset it and do not run, when no rc words found in message + if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { + version = null; + } + + // case: if default=prerelease, but rc-wording is NOT set if (version === 'prerelease' && preid) { version = 'prerelease'; version = `${version} --preid=${preid}`; } + // case: if nothing of the above matches if (version === null) { tools.exit.success('No version keywords found, skipping bump.'); return; } + // GIT logic try { const current = pkg.version.toString(); // set git user From 01d8a688111de59e27b42ba706f707e85b231c93 Mon Sep 17 00:00:00 2001 From: cmario92 Date: Thu, 1 Jul 2021 21:26:14 +0300 Subject: [PATCH 15/18] check if rc wording exists then stop v bump --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index faacb74..eaf4963 100644 --- a/index.js +++ b/index.js @@ -73,9 +73,11 @@ Toolkit.run(async (tools) => { version = 'prerelease'; } - // case: if default=prerelease, but rc-wording is also set - // then unset it and do not run, when no rc words found in message - if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { + // case: if default=prerelease, + // rc-wording is also set + // and does not include any of rc-wording + // then unset it and do not run + if (version === 'prerelease' && preReleaseWords !== '' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { version = null; } From 09f24b3284e145d24efe643f04dfdd9b5f59b0f4 Mon Sep 17 00:00:00 2001 From: cmario92 Date: Thu, 1 Jul 2021 21:36:01 +0300 Subject: [PATCH 16/18] check if rc wording exists then stop v bump - debug --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index eaf4963..97d065c 100644 --- a/index.js +++ b/index.js @@ -73,6 +73,8 @@ Toolkit.run(async (tools) => { version = 'prerelease'; } + tools.log('preReleaseWords - ' + preReleaseWords) + // case: if default=prerelease, // rc-wording is also set // and does not include any of rc-wording From 2a82d29a4f08d07e8efe83ebc03d505cf2494f73 Mon Sep 17 00:00:00 2001 From: Phil Date: Thu, 1 Jul 2021 22:10:38 +0200 Subject: [PATCH 17/18] fixed patch handling if not set --- index.js | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index 97d065c..5ad32ff 100644 --- a/index.js +++ b/index.js @@ -16,24 +16,28 @@ Toolkit.run(async (tools) => { console.log("Couldn't find any commits in this event, incrementing patch version..."); } + const tagPrefix = process.env['INPUT_TAG-PREFIX'] || ''; const messages = event.commits ? event.commits.map((commit) => commit.message + '\n' + commit.body) : []; const commitMessage = process.env['INPUT_COMMIT-MESSAGE'] || 'ci: version bump to {{version}}'; - console.log('messages:', messages); - const commitMessageRegex = new RegExp(commitMessage.replace(/{{version}}/g, 'v\\d+\\.\\d+\\.\\d+'), 'ig'); + console.log('commit messages:', messages); + const commitMessageRegex = new RegExp(commitMessage.replace(/{{version}}/g, `${tagPrefix}\\d+\\.\\d+\\.\\d+`), 'ig'); const isVersionBump = messages.find((message) => commitMessageRegex.test(message)) !== undefined; if (isVersionBump) { - tools.exit.success('No action necessary!'); + tools.exit.success('No action necessary because we found a previous bump!'); return; } // input wordings for MAJOR, MINOR, PATCH, PRE-RELEASE const majorWords = process.env['INPUT_MAJOR-WORDING'].split(','); const minorWords = process.env['INPUT_MINOR-WORDING'].split(','); - const patchWords = process.env['INPUT_PATCH-WORDING'].split(','); + // patch is by default empty, and '' would always be true in the includes(''), thats why we handle it separately + const patchWords = process.env['INPUT_PATCH-WORDING'] ? process.env['INPUT_PATCH-WORDING'].split(',') : null; const preReleaseWords = process.env['INPUT_RC-WORDING'].split(','); + console.log('config words:', { majorWords, minorWords, patchWords, preReleaseWords }); + // get default version bump let version = process.env.INPUT_DEFAULT; let foundWord = null; @@ -53,7 +57,7 @@ Toolkit.run(async (tools) => { version = 'minor'; } // case: if wording for PATCH found - else if (messages.some((message) => patchWords.some((word) => message.includes(word)))) { + else if (patchWords && messages.some((message) => patchWords.some((word) => message.includes(word)))) { version = 'patch'; } // case: if wording for PRE-RELEASE found @@ -73,13 +77,17 @@ Toolkit.run(async (tools) => { version = 'prerelease'; } - tools.log('preReleaseWords - ' + preReleaseWords) + console.log('version action after first waterfall:', version); // case: if default=prerelease, // rc-wording is also set // and does not include any of rc-wording // then unset it and do not run - if (version === 'prerelease' && preReleaseWords !== '' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { + if ( + version === 'prerelease' && + preReleaseWords !== '' && + !messages.some((message) => preReleaseWords.some((word) => message.includes(word))) + ) { version = null; } @@ -89,6 +97,8 @@ Toolkit.run(async (tools) => { version = `${version} --preid=${preid}`; } + console.log('version action after final decision:', version); + // case: if nothing of the above matches if (version === null) { tools.exit.success('No version keywords found, skipping bump.'); @@ -127,7 +137,7 @@ Toolkit.run(async (tools) => { await tools.runInWorkspace('npm', ['version', '--allow-same-version=true', '--git-tag-version=false', current]); console.log('current:', current, '/', 'version:', version); let newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString().trim().replace(/^v/, ''); - newVersion = `${process.env['INPUT_TAG-PREFIX']}${newVersion}`; + newVersion = `${tagPrefix}${newVersion}`; await tools.runInWorkspace('git', ['commit', '-a', '-m', commitMessage.replace(/{{version}}/g, newVersion)]); // now go to the actual branch to perform the same versioning @@ -139,7 +149,7 @@ Toolkit.run(async (tools) => { await tools.runInWorkspace('npm', ['version', '--allow-same-version=true', '--git-tag-version=false', current]); console.log('current:', current, '/', 'version:', version); newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString().trim().replace(/^v/, ''); - newVersion = `${process.env['INPUT_TAG-PREFIX']}${newVersion}`; + newVersion = `${tagPrefix}${newVersion}`; console.log(`::set-output name=newTag::${newVersion}`); try { // to support "actions/checkout@v1" From 7a21b3c1ce1140682f6669a821535d397fa4fa60 Mon Sep 17 00:00:00 2001 From: Phil Date: Thu, 1 Jul 2021 22:17:45 +0200 Subject: [PATCH 18/18] version 8.3.0 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 193bf61..0cb9bd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gh-action-bump-version", - "version": "8.2.15", + "version": "8.3.0", "repository": { "type": "git", "url": "git+https://github.com/phips28/gh-action-bump-version.git" @@ -27,4 +27,4 @@ "standard": "^14.3.3", "prettier": "^2.3.0" } -} \ No newline at end of file +}