Skip to content

Commit 054ed5e

Browse files
committed
ci(publish): more oidc config & debugging
1 parent 5617280 commit 054ed5e

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/plugin-publish.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)