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:
3131 env :
3232 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3333 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..."
3452 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+ }
3862
3963 publish-npm :
4064 name : Publish to NPM
You can’t perform that action at this time.
0 commit comments