Skip to content

Commit a607b48

Browse files
authored
version syntax should be 0.5.3-beta.0 (#454)
1 parent 4d27fbd commit a607b48

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/publish.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,14 @@ jobs:
1919
- run: npm run build --if-present
2020
- run: npm test
2121
- run: |
22-
git_tag="$GITHUB_REF_NAME"
23-
24-
IFS='@' read -a git_tag_parts <<< $git_tag
25-
version="${git_tag_parts[1]}"
22+
version="$GITHUB_REF_NAME"
2623
2724
# Sync version number to all package.json files
2825
npm run version $version
2926
30-
if [[ $git_tag == *"beta"* ]]; then
27+
if [[ $version == *"beta"* ]]; then
3128
tag=beta
32-
elif [[ $git_tag == *"alpha"* ]]; then
29+
elif [[ $version == *"alpha"* ]]; then
3330
tag=alpha
3431
else
3532
tag=latest

0 commit comments

Comments
 (0)