Skip to content

Commit bc6ce34

Browse files
ci: add temporary npm/OIDC publish diagnostics (#234)
geist@1.7.2 fails to publish with ENEEDAUTH despite OIDC trusted publishing working two weeks ago with an unchanged workflow. Print node/npm/pnpm versions (and which binary), the registry, and whether the OIDC token endpoint is exposed to the job, to confirm or rule out npm not using the OIDC-capable binary at publish time. Temporary; remove once the publish is fixed.
1 parent 31b2359 commit bc6ce34

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,20 @@ jobs:
196196
rm -rf packages/next/dist/fonts
197197
mv artifacts/packages/next/dist/fonts packages/next/dist/fonts
198198
199+
# TEMP diagnostic: ENEEDAUTH on OIDC publish (geist@1.7.2). Confirms whether
200+
# the npm that `changeset publish` will use is the OIDC-capable one (>= 11.5.1)
201+
# and whether the OIDC token endpoint is actually exposed to this job.
202+
# Remove once the publish is fixed.
203+
- name: Diagnose npm/OIDC publish environment
204+
working-directory: packages/next
205+
run: |
206+
echo "node: $(node --version) ($(command -v node))"
207+
echo "npm: $(npm --version) ($(command -v npm))"
208+
echo "pnpm: $(pnpm --version) ($(command -v pnpm))"
209+
echo "registry: $(npm config get registry)"
210+
echo "OIDC token URL present: ${ACTIONS_ID_TOKEN_REQUEST_URL:+yes}"
211+
echo "OIDC request token present: ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:+yes}"
212+
199213
- name: Create Release Pull Request or Publish
200214
id: changesets
201215
uses: changesets/action@v1.8.0

0 commit comments

Comments
 (0)