Skip to content

Add docs for npm auth setup#695

Open
bluwy wants to merge 2 commits into
mainfrom
set-up-npm-auth-docs
Open

Add docs for npm auth setup#695
bluwy wants to merge 2 commits into
mainfrom
set-up-npm-auth-docs

Conversation

@bluwy

@bluwy bluwy commented Jul 16, 2026

Copy link
Copy Markdown
Member

This is only a quick draft about setting up npm auth for users.

We could consider leaving auth setup completely to users (especially with trusted publishing nowadays), or go ahead with #658 and have some docs like this alongside for the advanced usecase.

Personally I prefer leaving the setup to docs so it's completely transparent of how it's set up. It's worth for users to understand the .npmrc syntax etc.

@changeset-bot

changeset-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 475369d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment thread docs/set-up-npm-auth.md
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
```

### Package Managers Edge Cases

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think a section like this is enough of a reason to go with #658 to, at least, ease common scenarios.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These aren't common though, except yarn since it literally needs its own config and documentation, but then it's also a simple yarn config that you can create manually which isn't hard.

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