Skip to content

Commit 486ce6a

Browse files
authored
chore(pages): update .npmrc variable syntax (#1740)
Closes #1623
1 parent 141be42 commit 486ce6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

products/pages/src/content/how-to/npm-private-registry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ When multiple registries are in use, a project will need to define its own root-
5555

5656
```ini
5757
@foobar:registry=https://npm.pkg.github.com
58-
//registry.npmjs.org/:_authToken=$TOKEN_FOR_NPM
59-
//npm.pkg.github.com/:_authToken=$TOKEN_FOR_GITHUB
58+
//registry.npmjs.org/:_authToken=${TOKEN_FOR_NPM}
59+
//npm.pkg.github.com/:_authToken=${TOKEN_FOR_GITHUB}
6060
```
6161

6262
Here, all packages under the `@foobar` scope are directed towards the GitHub Packages registry. Then the registries are assigned their own access tokens via their respective environment variable names.

0 commit comments

Comments
 (0)