Skip to content

Commit 56ffb1f

Browse files
authored
Missed slash in "if" and minor formatting (#508)
1 parent a6186a8 commit 56ffb1f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

content/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,16 @@ You can use `publishConfig` element in the *package.json* file to specify the re
101101
If your instance has subdomain isolation enabled:
102102
{% endif %}
103103
```shell
104-
"publishConfig": {
105-
"registry":"https://{% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}"
106-
},
104+
"publishConfig": {
105+
"registry":"https://{% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}"
106+
},
107107
```
108108
{% if currentVersion != "free-pro-team@latest" %}
109109
If your instance has subdomain isolation disabled:
110110
```shell
111-
"publishConfig": {
112-
"registry":"https://<em>HOSTNAME</em>/_registry/npm/"
113-
},
111+
"publishConfig": {
112+
"registry":"https://<em>HOSTNAME</em>/_registry/npm/"
113+
},
114114
```
115115
{% endif %}
116116
{% data reusables.package_registry.verify_repository_field %}
@@ -136,7 +136,7 @@ To ensure the repository's URL is correct, replace REPOSITORY with the name of t
136136
137137
You can install packages from {% data variables.product.prodname_registry %} by adding the packages as dependencies in the *package.json* file for your project. For more information on using a *package.json* in your project, see "[Working with package.json](https://docs.npmjs.com/getting-started/using-a-package.json)" in the npm documentation.
138138
139-
By default, you can add packages from one organization. For more information, see [Installing packages from other organizations](#installing-packages-from-other-organizations)
139+
By default, you can add packages from one organization. For more information, see "[Installing packages from other organizations](#installing-packages-from-other-organizations)."
140140
141141
You also need to add the *.npmrc* file to your project so all requests to install packages will go through {% data variables.product.prodname_registry %}. When you route all package requests through {% data variables.product.prodname_registry %}, you can use both scoped and unscoped packages from *npmjs.com*. For more information, see "[npm-scope](https://docs.npmjs.com/misc/scope)" in the npm documentation.
142142
@@ -173,7 +173,7 @@ If your instance has subdomain isolation enabled:
173173
{% endif %}
174174
175175
```shell
176-
registry=https://{% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}<em>OWNER</em>
176+
registry=https://{% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>{% endif %}/<em>OWNER</em>
177177
@<em>OWNER</em>:registry={% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}
178178
@<em>OWNER</em>:registry={% if currentVersion == "free-pro-team@latest" %}npm.pkg.github.com{% else %}npm.<em>HOSTNAME</em>/{% endif %}
179179
```

0 commit comments

Comments
 (0)