Skip to content

Commit

Permalink
fix: release regex
Browse files Browse the repository at this point in the history
  • Loading branch information
JeancarloBarrios committed Oct 18, 2023
1 parent 5b5eb96 commit 7acb0b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
tags:
# SemVer regex taken from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
# Added option to start with a v for cases like v0.0.1
- '^v?(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?'
- '^(v?)(?P<major>0|[1-9]\\d*)\\.(?P<minor>0|[1-9]\\d*)\.(?P<patch>0|[1-9]\\d*)(?:-(?P<prerelease>(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?'


concurrency:
group: ci-${{ github.ref }}-${{ github.workflow }}
Expand Down

0 comments on commit 7acb0b4

Please sign in to comment.