Skip to content

Conversation

@nastassiafulconis
Copy link
Collaborator

Summary

  • Removes NPM_TOKEN environment variable from release workflow that was causing authentication failures
  • The workflow already has id-token: write for Trusted Publishing (OIDC), which conflicts with legacy token authentication
  • NPM_TOKEN was accidentally reintroduced in PR Comprehensive CLI improvements and security fixes #21

Root Cause

When both Trusted Publishing (id-token: write) and legacy token authentication (NPM_TOKEN) are configured, npm authentication fails with "ENEEDAUTH" error.

Solution

Remove the NPM_TOKEN environment variable to use only Trusted Publishing for secure, token-free npm publishing.

Test Plan

  • Build passes locally
  • Tests pass locally
  • Verify release workflow succeeds after merge

Related Issues

Fixes the npm publishing failure that started after PR #21 was merged.

@nastassiafulconis nastassiafulconis requested a review from a team November 10, 2025 16:33
@nastassiafulconis nastassiafulconis merged commit 976ca4a into main Nov 10, 2025
6 checks passed
@nastassiafulconis nastassiafulconis deleted the fix-npm-trusted-publisher branch November 10, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants