-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[update]: legacy access token creation workflow from access tokens documentation
#1756
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
base: release-110525
Are you sure you want to change the base?
Conversation
...t/integrations/integrating-npm-with-external-services/creating-and-viewing-access-tokens.mdx
Show resolved
Hide resolved
|
Only the last two files changed in this PR are actually sourced from this repo. The rest are legacy docs for old versions of npm, sourced from https://github.com/npm/cli itself. We don't need to backport updates there, only the latest version of docs for registry-specific things are authoritative. We may want to consider adding warning headers when folks are browsing legacy docs to remind them, but that's outside the scope of this PR. |
|
Additionally, those proposed changes would be incorrect for those old version of npm. The defaults are baked into npm itself, not the registry. Those files are build directly from npm config itself. We intentionally made a tight coupling there so that docs would reflect reality. Changing those defaults would have to wait till npm 12. |
...ations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdx
Outdated
Show resolved
Hide resolved
| - **token:** The first digits of the actual token. | ||
| - **create:** Date the token was created. | ||
| - **readonly:** If yes, indicates a read-only token. If no, indicates a token with both read and publish permissions. | ||
| - **created:** Date the token was created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| - [Legacy tokens](#about-legacy-tokens) | ||
| - [Granular access tokens](#about-granular-access-tokens) | ||
| As of November 2025, access tokens can only be [Granular access tokens](#about-granular-access-tokens). Legacy access tokens are deprecated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| For more information on creating and viewing access tokens on the web and CLI, see "[Creating and viewing access tokens][create-token]". | ||
|
|
||
| ## About legacy tokens | ||
| ## About legacy tokens (Deprecated) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ion as deprecated
...ations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdx
Outdated
Show resolved
Hide resolved
content/integrations/integrating-npm-with-external-services/about-access-tokens.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Di Hei <dhei@github.com>
Added a warning about the deprecation of legacy access tokens.
|
|
||
| If you use a legacy token instead, by default, `npm token create` will generate a token with both read and write permissions. We recommend creating a read-only token: | ||
|
|
||
| <Note variant="danger"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
content/integrations/integrating-npm-with-external-services/about-access-tokens.mdx
Outdated
Show resolved
Hide resolved
content/integrations/integrating-npm-with-external-services/about-access-tokens.mdx
Outdated
Show resolved
Hide resolved
...ations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdx
Outdated
Show resolved
Hide resolved
…out-access-tokens.mdx Co-authored-by: Di Hei <dhei@github.com>
…ing-private-packages-in-a-ci-cd-workflow.mdx Co-authored-by: Di Hei <dhei@github.com>
…out-access-tokens.mdx Co-authored-by: Di Hei <dhei@github.com>
|
|
||
| - [Legacy tokens](#about-legacy-tokens) | ||
| - [Granular access tokens](#about-granular-access-tokens) | ||
| As of November 2025, access tokens can only be [Granular access tokens](#about-granular-access-tokens). Legacy access tokens are removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…D workflow documentation





Summary: Added notes on deprecated legacy access token references and removed few documentation due to deprecation
File Changes (3 files)
content/integrations/integrating-npm-with-external-services/creating-and-viewing-access-tokens.mdxcontent/integrations/integrating-npm-with-external-services/about-access-tokens.mdxcontent/integrations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdxChanges Made
notefor legacy token creation workflow from access tokens documentation