fix: manually configure .npmrc for npm authentication#10
Merged
Conversation
- Remove registry-url from setup-node (causes conflicts) - Add explicit .npmrc configuration step with NPM_TOKEN - Matches pattern from working type-graphql release workflow
benminer
reviewed
Nov 6, 2025
benminer
reviewed
Nov 6, 2025
benminer
approved these changes
Nov 6, 2025
EmmaLouise2018
approved these changes
Nov 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The release workflow was failing with 404 errors when trying to publish to npm, even though the NPM_TOKEN was configured.
Root Cause
Using
setup-nodewithregistry-urland environment variables wasn't properly configuring npm authentication. The token was never being used (npm token showed "Last used: never").Solution
Manually create
.npmrcfile with the auth token, matching the pattern from the working type-graphql release workflow.Changes
registry-urlfrom setup-node step (causes conflicts).npmrcwith NPM_TOKENThis matches the exact pattern used in the type-graphql manual release workflow that successfully publishes.
Testing
Will be validated when this PR is merged and triggers a release.