From 7ceed52765732ddd73c7444f4260aa1dfe69e8d9 Mon Sep 17 00:00:00 2001 From: Rimon Hanna Date: Wed, 7 Oct 2020 17:50:44 +0200 Subject: [PATCH] Update action.js --- action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.js b/action.js index 700d0a305..e6a183108 100644 --- a/action.js +++ b/action.js @@ -57,7 +57,7 @@ Toolkit.run(async tools => { ['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() - newVersion = `${process.env['INPUT_TAG-PREFIX']}${newVersion}` + newVersion = (process.env['INPUT_TAG-PREFIX'] != null)? `${process.env['INPUT_TAG-PREFIX']}${newVersion}`: `${newVersion}` console.log('new version:', newVersion) try { // to support "actions/checkout@v1"