Skip to content

Commit 0086009

Browse files
committed
🐛 fix for no match on npm publish
1 parent 35a01f0 commit 0086009

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/_publish-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# Normal versions are published to the 'latest' tag.
4141
#
4242
git_tag=$(git tag --sort=-v:refname | head -n 1)
43-
tag=$(echo "${git_tag}" | pcregrep -e '-(alpha|beta|rc)[0-9]?$' -o1)
43+
tag=$(echo "${git_tag}" | pcregrep -e '-(alpha|beta|rc)[0-9]?$' -o1 || true)
4444
if [ -n "${tag}" ]; then
4545
npm_tag="${tag}"
4646
else

0 commit comments

Comments
 (0)