1 parent b90a41a commit db7451bCopy full SHA for db7451b
1 file changed
.github/workflows/cd.yml
@@ -47,7 +47,15 @@ jobs:
47
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48
# `lerna publish` uploads via libnpmpublish@4, which supports neither provenance nor
49
# OIDC trusted publishing, so the upload goes through the npm CLI instead.
50
+ #
51
+ # NODE_AUTH_TOKEN is cleared on purpose. `setup-node` exports the placeholder
52
+ # `XXXXX-XXXXX-XXXXX-XXXXX` when given no token, and the .npmrc it writes points
53
+ # `_authToken` at that variable, so npm sends the placeholder as a real credential
54
+ # and never attempts the OIDC exchange. The registry masks the rejection as E404.
55
+ # With no credential configured, npm falls back to trusted publishing.
56
- name: 🚀 Publish
57
run: npm run publish:ci
58
shell: bash
59
+ env:
60
+ NODE_AUTH_TOKEN: ''
61
0 commit comments