Skip to content

Commit

Permalink
fixed release script invalid semver (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored May 28, 2021
1 parent 31ec934 commit 8424ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8424ed8

Please sign in to comment.