We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c066e25 commit 35a01f0Copy full SHA for 35a01f0
1 file changed
.github/workflows/_publish-code.yml
@@ -30,13 +30,16 @@ jobs:
30
31
- name: Publish
32
run: |
33
+ # sort pre-releases after main version
34
+ git config versionsort.suffix "-"
35
+
36
cd ./dist
37
38
#
39
# Alpha, Beta, RC versions are published in their own tag.
40
# Normal versions are published to the 'latest' tag.
41
- git_tag=$(git tag --sort=-v:refname | head -n 2 | tail -1)
42
+ git_tag=$(git tag --sort=-v:refname | head -n 1)
43
tag=$(echo "${git_tag}" | pcregrep -e '-(alpha|beta|rc)[0-9]?$' -o1)
44
if [ -n "${tag}" ]; then
45
npm_tag="${tag}"
0 commit comments