Skip to content

Commit b7e65e9

Browse files
committed
docs: remove legacy token usage instructions and emphasize read-only token creation
1 parent 8157d27 commit b7e65e9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

content/integrations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ Create a new access token that will be used only to access npm packages from a C
2525

2626
When generating an access token for use in a continuous integration environment, we recommend using a granular access token with limited access to provide greater security.
2727

28-
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:
29-
30-
```
31-
npm token create --read-only
32-
```
33-
34-
For more information on creating access tokens, including CIDR-whitelisted tokens, see "[Creating an access token][create-token]".
35-
3628
### Continuous deployment
3729

3830
For publishing packages in continuous deployment environments, we strongly recommend using [trusted publishing](/trusted-publishers) when available, as it provides enhanced security without requiring token management.

0 commit comments

Comments
 (0)