File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -103,21 +103,24 @@ jobs:
103103
104104 - name : Configure npm for OIDC authentication
105105 run : |
106- # Configure npm to use provenance/OIDC for the registry
107- npm config set provenance true
108- # delete authtoken
109- npm config delete //registry.npmjs.org/:_authToken
110- # set always-auth
111- npm config set //registry.npmjs.org/:always-auth false
112- # delete auth
113- npm config delete always-auth
114- # npm list config
106+ npm config delete //registry.npmjs.org/:_authToken 2>/dev/null || true
107+ npm config delete always-auth 2>/dev/null || true
108+ npm config delete //registry.npmjs.org/:always-auth 2>/dev/null || true
115109 npm config list -l
116110
111+ - name : Debug npm configuration
112+ run : |
113+ echo "=== NPM Config ==="
114+ npm config list
115+ echo "=== NPM Config (all) ==="
116+ npm config list -l | grep -E "(registry|auth|provenance)"
117+ echo "=== Environment ==="
118+ env | grep -E "(NPM|NODE)" || true
119+
117120 - name : Publish specific package to NPM with provenance
118121 run : |
119122 cd heft-plugins/${{ steps.version.outputs.package_short_name }}
120- npm publish --access public --tag ${{ steps.version.outputs.dist_tag }}
123+ npm publish --access public --tag ${{ steps.version.outputs.dist_tag }} --provenance
121124
122125 - name : Create GitHub Release
123126 uses : softprops/action-gh-release@v1
You can’t perform that action at this time.
0 commit comments