File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,18 @@ jobs:
100100 - run : yarn run lint
101101 - run : yarn run build:prod
102102
103+ - name : Debug trusted publishing setup
104+ run : |
105+ echo "=== Trusted Publishing Debug Info ==="
106+ echo "Repository: ${{ github.repository }}"
107+ echo "Workflow file: ${{ github.workflow_ref }}"
108+ echo "Workflow name: ${{ github.workflow }}"
109+ echo "Job: ${{ github.job }}"
110+ echo "Actor: ${{ github.actor }}"
111+ echo "Ref: ${{ github.ref }}"
112+ echo "Event: ${{ github.event_name }}"
113+ echo ""
114+
103115 - name : Publish packages to NPM
104116 run : |
105117 if [ "${{ env.IS_PRERELEASE }}" = "true" ]; then
@@ -116,7 +128,15 @@ jobs:
116128 package_name=$(node -p "require('./$package_path/package.json').name")
117129 echo "Publishing $package_name from $package_path with tag $tag"
118130 cd "$package_path"
119- npm publish --access public --tag "$tag" --provenance
131+
132+ # Try a more verbose npm publish to get better error info
133+ echo "Attempting to publish with full debug info..."
134+ npm publish --access public --tag "$tag" --provenance --verbose || {
135+ echo "Publish failed. Checking npm whoami and config..."
136+ npm whoami 2>&1 || echo "npm whoami failed (expected for trusted publishing)"
137+ npm config list
138+ exit 1
139+ }
120140 cd - > /dev/null
121141 fi
122142 done
You can’t perform that action at this time.
0 commit comments