Skip to content

Commit a591bdb

Browse files
committed
Try unsetting auth token.
1 parent 37fccb0 commit a591bdb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/publish-packages.yml

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

0 commit comments

Comments
 (0)