File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 25
25
- id : get-package-source
26
26
run : |
27
27
tag="${GITHUB_REF#refs/tags/}"
28
- name_with_scope=$(echo "$tag" | cut -d'@' -f2-)
29
- scope=$(echo "$name_with_scope" | cut -d'/' -f1)
30
- name=$(echo "$name_with_scope" | cut -d'/' -f2 | cut -d'@' -f1)
28
+ echo "Full tag: $tag"
29
+
30
+ # Strip both leading @ and version suffix
31
+ pkg_path=$(echo "$tag" | sed -E 's/^@([^@]*)@([0-9]+\.[0-9]+\.[0-9]+)$/\1/')
32
+ # pkg_path = firebase-ui/translations
33
+
34
+ scope=$(echo "$pkg_path" | cut -d'/' -f1)
35
+ name=$(echo "$pkg_path" | cut -d'/' -f2)
31
36
version=$(echo "$tag" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
32
37
33
38
echo "SCOPE=$scope" >> "$GITHUB_ENV"
36
41
echo "TAG=$tag" >> "$GITHUB_ENV"
37
42
echo "file=releases/${scope}-${name}-${version}.tgz" >> "$GITHUB_OUTPUT"
38
43
44
+ echo "Parsed:"
45
+ echo " Scope: $scope"
46
+ echo " Package: $name"
47
+ echo " Version: $version"
48
+ echo " File path: releases/${scope}-${name}-${version}.tgz"
49
+
39
50
- run : pnpm --filter "@${{ env.SCOPE }}/${{ env.PACKAGE }}" run release
40
51
41
52
- uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments