diff --git a/index.js b/index.js index 3b9ceea..70c73ad 100644 --- a/index.js +++ b/index.js @@ -92,7 +92,9 @@ const workspace = process.env.GITHUB_WORKSPACE; }), ) ) { - preid = foundWord.split('-')[1]; + if (foundWord != ''){ + preid = foundWord.split('-')[1]; + } version = 'prerelease'; }