File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -132,11 +132,21 @@ jobs:
132132 echo "=== package.json publishConfig ==="
133133 grep -A5 '"publishConfig"' package.json || echo "No publishConfig"
134134
135+ - name : Clear token auth for OIDC
136+ run : |
137+ # Remove the authToken line from .npmrc so npm uses OIDC instead
138+ if [ -f "$NPM_CONFIG_USERCONFIG" ]; then
139+ sed -i '/:_authToken/d' "$NPM_CONFIG_USERCONFIG"
140+ echo "Cleared _authToken from $NPM_CONFIG_USERCONFIG"
141+ cat "$NPM_CONFIG_USERCONFIG"
142+ fi
143+
135144 - name : Publish to npm
136145 working-directory : packages/clients/dist-packages/${{ matrix.state }}
137146 run : npm publish --access public --provenance
138147 env :
139148 NPM_CONFIG_PROVENANCE : true
149+ NODE_AUTH_TOKEN : ' '
140150
141151 summary :
142152 needs : [setup, publish]
You can’t perform that action at this time.
0 commit comments