From 8424ed8537f76896f0b8988865b7b033abbd3278 Mon Sep 17 00:00:00 2001 From: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Date: Fri, 28 May 2021 22:28:17 +0800 Subject: [PATCH] fixed release script invalid semver (#311) --- .github/workflows/release-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 7d4a34c19e..bd4443d422 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -20,7 +20,7 @@ jobs: with: script: | const semver = context.ref.replace('refs/tags/v', '') - if (semver.match(/[0-9]\.[0-9]\.[0-9]/)) { + if (semver.match(/^[0-9]+\.[0-9]+\.[0-9]+$/)) { return semver }