Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8db0be4

Browse files
devzomwraithgarljharb
authored
docs: fix invalid link and unify link presentation (npm#76)
* docs: fix invalid link and unify link presentation There was an invalid link on 'automation token' which leads to 404, also not unified style of link presentation because other links have quotes. * Update content/integrations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdx Co-authored-by: Gar <[email protected]> * docs: fix unnecessary quotes around link * Update content/integrations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdx Co-authored-by: Jordan Harband <[email protected]> Co-authored-by: Gar <[email protected]> Co-authored-by: Jordan Harband <[email protected]>
1 parent 4f392c5 commit 8db0be4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For more information on creating access tokens, including CIDR-whitelisted token
2222

2323
### Continuous deployment
2424

25-
Since continuous deployment environments usually involve the creation of a deploy artifact, you may wish to create an [automation token](create-token#creating-tokens-on-the-website) on the website. This will allow you to publish even if you have two-factor authentication enabled on your account.
25+
Since continuous deployment environments usually involve the creation of a deploy artifact, you may wish to create an [automation token][create-token] on the website. This will allow you to publish even if you have two-factor authentication enabled on your account.
2626

2727
### Interactive workflows
2828

@@ -47,13 +47,13 @@ Example:
4747
npm token create --cidr=192.0.2.0/24
4848
```
4949

50-
For more information, see "[Creating and viewing authentication tokens](creating-and-viewing-access-tokens)".
50+
For more information, see "[Creating and viewing authentication tokens][create-token]".
5151

5252
## Set the token as an environment variable on the CI/CD server
5353

5454
Set your token as an environment variable, or a secret, in your CI/CD server.
5555

56-
For example, in GitHub Actions, you would [add your token as a secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets). Then you can make the secret available to workflows.
56+
For example, in GitHub Actions, you would [add your token as a secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets). Then you can make the secret available to workflows.
5757

5858
If you named the secret `NPM_TOKEN`, then you would want to create an environment variable named `NPM_TOKEN` from that secret.
5959

@@ -77,14 +77,14 @@ Use a project-specific `.npmrc` file with a variable for your token to securely
7777
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
7878
```
7979

80-
**Note:** that you are specifying a literal value of `${NPM_TOKEN}`. The npm cli will replace this value with the contents of the `NPM_TOKEN` environment variable. Do **not** put a token in this file.
80+
**Note:** that you are specifying a literal value of `${NPM_TOKEN}`. The npm cli will replace this value with the contents of the `NPM_TOKEN` environment variable. Do **not** put a token in this file.
8181

8282
2. Check in the `.npmrc` file.
8383

8484
## Securing your token
8585

86-
Your token may have permission to read private packages, publish new packages on your behalf, or change user or package settings. Protect your token.
86+
Your token may have permission to read private packages, publish new packages on your behalf, or change user or package settings. Protect your token.
8787

88-
Do not add your token to version control or store it insecurely. Store it in a package manager, your cloud provider's secure storage, or your CI/CD provider's secure storage.
88+
Do not add your token to version control or store it insecurely. Store it in a package manager, your cloud provider's secure storage, or your CI/CD provider's secure storage.
8989

9090
[create-token]: creating-and-viewing-access-tokens

0 commit comments

Comments
 (0)