Skip to content

Commit 68c5390

Browse files
chore: Add debug step for NPM_TOKEN in npm-publish workflow
1 parent b5f2834 commit 68c5390

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ jobs:
3232
- name: Build
3333
run: npm run build
3434

35+
- name: Debug NPM_TOKEN
36+
env:
37+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
run: |
39+
echo "Token length: ${#NPM_TOKEN}"
40+
echo "Token starts with: ${NPM_TOKEN:0:5}"
41+
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
42+
npm whoami
43+
3544
- name: Semantic Release
3645
env:
3746
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)