File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,34 @@ jobs:
31
31
env :
32
32
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
33
run : |
34
+ echo "Debug information:"
35
+ echo "GITHUB_REF: $GITHUB_REF"
36
+ echo "GITHUB_REF_NAME: ${{ github.ref_name }}"
37
+ echo "GITHUB_REPOSITORY: ${{ github.repository }}"
38
+
39
+ # List all tags to see what exists
40
+ echo "Available tags:"
41
+ git tag -l
42
+
43
+ # Check if the specific tag exists
44
+ if git rev-parse "${{ github.ref_name }}" >/dev/null 2>&1; then
45
+ echo "Tag ${{ github.ref_name }} exists in git"
46
+ else
47
+ echo "Tag ${{ github.ref_name }} does NOT exist in git"
48
+ fi
49
+
50
+ # Try to create release with more verbose output
51
+ echo "Attempting to create release..."
34
52
gh release create "${{ github.ref_name }}" \
35
- --repo="${{ github.repository }}" \
36
- --title="Release ${{ github.ref_name }}" \
37
- --generate-notes
53
+ --repo="${{ github.repository }}" \
54
+ --title="Release ${{ github.ref_name }}" \
55
+ --generate-notes \
56
+ --verbose || {
57
+ echo "Release creation failed with exit code $?"
58
+ echo "Trying to get more details about existing releases..."
59
+ gh release list --repo="${{ github.repository }}" --limit=10
60
+ exit 1
61
+ }
38
62
39
63
publish-npm :
40
64
name : Publish to NPM
You can’t perform that action at this time.
0 commit comments