Skip to content

Commit 5451bec

Browse files
committed
Debug CI
1 parent ed30642 commit 5451bec

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
with:
2121
node-version: '20'
2222

23+
- name: Update npm and configure
24+
run: |
25+
npm install -g npm@latest
26+
echo "npm version: $(npm --version)"
27+
echo "node version: $(node --version)"
28+
echo "OIDC URL set: ${ACTIONS_ID_TOKEN_REQUEST_URL:+yes}"
29+
cat ~/.npmrc 2>/dev/null || echo "No .npmrc"
30+
2331
- name: Setup Bun
2432
uses: oven-sh/setup-bun@v2
2533
with:
@@ -48,7 +56,10 @@ jobs:
4856
4957
- name: Publish to npm
5058
if: steps.version.outputs.changed == 'true'
51-
run: npm publish --access public --provenance
59+
run: |
60+
# Ensure no auth config exists (let npm use OIDC)
61+
rm -f ~/.npmrc
62+
npm publish --access public --provenance
5263
5364
- name: Create GitHub Release
5465
if: steps.version.outputs.changed == 'true'

0 commit comments

Comments
 (0)