Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add npm token authentication #133

Merged
merged 1 commit into from
Oct 11, 2024
Merged

fix: add npm token authentication #133

merged 1 commit into from
Oct 11, 2024

Conversation

gentlementlegen
Copy link
Member

Include .npmrc file to authenticate with npm registry.

Include .npmrc file to authenticate with npm registry.
@gentlementlegen gentlementlegen marked this pull request as ready for review October 11, 2024 02:21
@gentlementlegen gentlementlegen merged commit 64e1d16 into main Oct 11, 2024
7 checks passed
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this syntax actually work?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that's how you can authenticate with npm:
https://docs.npmjs.com/cli/v10/configuring-npm/npmrc#auth-related-configuration

bun implemented publish 3 days ago. They just call npm under the hood.

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.

2 participants