Skip to content

Commit 56ef4c0

Browse files
PaulDuvallclaude
andcommitted
fix: add NPM authentication verification to publish workflow
- Added npm whoami verification step to check token validity - Added verbose flag to npm publish for better debugging - Added informational messages for troubleshooting This helps diagnose authentication issues with both classic and fine-grained NPM tokens 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b23724e commit 56ef4c0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/npm-publish-simple.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,17 @@ jobs:
4949
run: |
5050
echo "//registry.npmjs.org/:_authToken=${{ inputs.npm_token }}" >> ~/.npmrc
5151
echo "::add-mask::${{ inputs.npm_token }}"
52+
53+
- name: Verify NPM Authentication
54+
run: |
55+
echo "Verifying NPM authentication..."
56+
npm whoami || echo "⚠️ Not authenticated - token may be invalid"
5257
5358
- name: Publish
5459
run: |
5560
cd claude-dev-toolkit
56-
npm publish --access public
61+
echo "Publishing @paulduvall/claude-dev-toolkit..."
62+
npm publish --access public --verbose
5763
5864
- name: Verify SSM parameter (Optional)
5965
continue-on-error: true

0 commit comments

Comments
 (0)