Skip to content

Fix npm publish auth#14

Merged
defunctzombie merged 1 commit intomainfrom
roman/fix-publish
May 27, 2025
Merged

Fix npm publish auth#14
defunctzombie merged 1 commit intomainfrom
roman/fix-publish

Conversation

@defunctzombie
Copy link

Changelog

None

Docs

None

Description

This is too stupid to explain. It seems that npm doesn't have a "native" env var it reads for auth and instead uses the configured value in .npmrc. Setting the registry-url with the setup-node action is the glue that connects the env var NODE_AUTH_TOKEN to authenticate when publishing.

@defunctzombie defunctzombie merged commit 770da62 into main May 27, 2025
1 check passed
@defunctzombie defunctzombie deleted the roman/fix-publish branch May 27, 2025 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants